VinculumClient class
Main Vinculum client that provides access to all services
Constructors
- VinculumClient({required String baseUrl, String? authServiceUrl, String? databaseServiceUrl, String? storageServiceUrl, String? realtimeServiceUrl, TokenStorage? tokenStorage, Duration? timeout, bool enableLogging = false})
-
Creates a new VinculumClient instance with individual parameters
factory
- VinculumClient.withConfig({required VinculumConfig config, TokenStorage? tokenStorage})
- Creates a new VinculumClient instance with a configuration object
Properties
- accessToken → String?
-
Current access token
no setter
- auth → AuthClient
-
Auth client for authentication operations
no setter
-
authStateChanges
→ Stream<
bool> ? -
Stream of authentication state changes
no setter
- batch → BatchClient
-
Batch client for batch operations
no setter
- config → VinculumConfig
-
The configuration used by this client
no setter
- database → DatabaseClient
-
Database client for CRUD operations
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAuthenticated → bool
-
Whether user is authenticated
no setter
- realtime → RealtimeClient
-
Realtime client for WebSocket subscriptions
no setter
- refreshToken → String?
-
Current refresh token
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- storage → StorageClient
-
Storage client for file operations
no setter
- tokenStorage → TokenStorage
-
Token storage instance
no setter
Methods
-
close(
) → Future< void> - Closes all connections and cleans up resources
-
copyWith(
{String? baseUrl, String? authServiceUrl, String? databaseServiceUrl, String? storageServiceUrl, String? realtimeServiceUrl, TokenStorage? tokenStorage, Duration? timeout, bool? enableLogging}) → VinculumClient - Creates a new client with a different configuration
-
initialize(
) → Future< void> - Initializes the client (call this if using persistent token storage)
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited