From 86f329176648758a1c087c850e4fbe892c5edff4 Mon Sep 17 00:00:00 2001 From: Muhammadyusuf <45625440+muhammadyusuf-kurbonov@users.noreply.github.com> Date: Fri, 26 Sep 2025 15:43:42 +0000 Subject: [PATCH 1/2] replace late with nullable types --- lib/src/featherjs.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/featherjs.dart b/lib/src/featherjs.dart index 5623dab..61d71bd 100644 --- a/lib/src/featherjs.dart +++ b/lib/src/featherjs.dart @@ -32,19 +32,19 @@ import 'config/storage.dart'; ///{@endtemplate} class FlutterFeathersjs { //RestClient - late RestClient rest; + RestClient? rest; // Rest client for standalone usage - late FlutterFeathersjsRest? standaloneRest; + FlutterFeathersjsRest? standaloneRest; //SocketioClient - late SocketioClient scketio; + SocketioClient? scketio; // Socketio client for standalone usage - late FlutterFeathersjsSocketio? standaloneSocketio; + FlutterFeathersjsSocketio? standaloneSocketio; // current configured client - late String client; + String client = ""; ///Using singleton static final FlutterFeathersjs _flutterFeathersjs = From b41972a67fdfc21149cd11416105b5fcf6a4c703 Mon Sep 17 00:00:00 2001 From: Muhammadyusuf Kurbonov Date: Fri, 26 Sep 2025 20:48:27 +0500 Subject: [PATCH 2/2] fix: use late for clients --- lib/src/featherjs.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/featherjs.dart b/lib/src/featherjs.dart index 61d71bd..3c906a4 100644 --- a/lib/src/featherjs.dart +++ b/lib/src/featherjs.dart @@ -32,19 +32,19 @@ import 'config/storage.dart'; ///{@endtemplate} class FlutterFeathersjs { //RestClient - RestClient? rest; + late RestClient rest; // Rest client for standalone usage - FlutterFeathersjsRest? standaloneRest; + late FlutterFeathersjsRest? standaloneRest; //SocketioClient - SocketioClient? scketio; + late SocketioClient scketio; // Socketio client for standalone usage - FlutterFeathersjsSocketio? standaloneSocketio; + late FlutterFeathersjsSocketio? standaloneSocketio; // current configured client - String client = ""; + String? client; ///Using singleton static final FlutterFeathersjs _flutterFeathersjs =