Server class

Legacy default connection wrapper.

Generated packages should use FlutterApiBridge with their own stable key.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

auth → ApiAuth
no setter
connection → ApiConnection
no setter

Static Methods

clearCache() → Future<void>
clearSessionCache(String sessionId) → Future<void>
init({required String baseUrl, required AuthStrategy authStrategy, Duration defaultCacheTtl = const Duration(minutes: 5), ApiCachePolicy defaultCachePolicy = ApiCachePolicy.networkFirst, bool cookiesEnabled = true, Map<String, String> defaultHeaders = const <String, String>{}, ApiRetryConfig retry = const ApiRetryConfig(), ApiLogger logger = const DeveloperApiLogger(), ApiLoggingConfig logging = const ApiLoggingConfig(), ApiClientIdentityProvider? clientIdentity}) → Future<void>
initializeUserSession({required String sessionId, String? bearerToken, Map<String, String>? authHeaders, Map<String, Object?> metadata = const <String, Object?>{}}) → Future<void>
logout() → Future<void>

Constants

connectionKey → const String