BloomServerpodClient class
Official Bloom client adapter for Serverpod backend connections.
Provides connection state tracking, authentication key management, and stream signal bindings.
Example:
final client = BloomServerpodClient(
serverUrl: 'https://api.example.com',
initialAuthKey: 'my-auth-key',
);
Constructors
-
BloomServerpodClient({required String serverUrl, Map<
String, String> defaultHeaders = const {}, String? initialAuthKey}) - Creates a BloomServerpodClient instance.
Properties
- authKey → String?
-
Active authentication key.
no setter
-
defaultHeaders
→ Map<
String, String> -
Default HTTP headers attached to requests.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverUrl → String
-
Base URL of the Serverpod backend.
final
- status → BloomServerpodConnectionStatus
-
Connection status.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setAuthKey(
String? key) → void - Updates authentication key.
-
setStatus(
BloomServerpodConnectionStatus newStatus) → void - Updates connection status.
-
signalFromStream<
T> ({required Stream< T> stream, required T initialValue}) → BloomStreamSignal<T> -
Creates a reactive BloomStreamSignal whose value updates automatically from a Serverpod streaming
stream. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited