client/server library

Classes

ApiAuth
Connection-scoped transport authentication and manual override state.
ApiAuthLogEvent
ApiBridgeConfig
Full runtime configuration for a named generated API package connection.
ApiCache
Connection-scoped, session-partitioned L1 memory + L2 Hive cache.
ApiCacheConfig
Persistent cache configuration for one API connection.
ApiCacheLogEvent
ApiCacheRead
ApiCallLogOptions
Client-only logging controls for one request.
ApiClient
Legacy raw Dio access.
ApiClientIdentity
Stable application and installation identity attached to each request.
ApiConnection
One isolated API runtime used by a generated package.
ApiCookieManager
Connection-scoped persistent cookie manager.
ApiCredentialStorage
Minimal secure key/value abstraction so applications can replace or test credential persistence without changing generated clients.
ApiEnvelope
ApiError<T>
ApiErrorLogEvent
ApiGetRequestOptions
ApiKeyStrategy
Static API-key authentication.
ApiLogEvent
Structured package event delivered to ApiLogger implementations.
ApiLogFormatter
ApiLogger
ApiLoggingConfig
ApiLogRedactor
ApiNotifier
ApiRequest<T>
ApiRequestLogEvent
ApiRequestOptions
Shared request controls available on every generated operation.
ApiResolvedLogOptions
ApiResponseLogEvent
ApiResult<T>
ApiResultMetadata
ApiRetryConfig
Retry behavior for one API connection.
ApiRetryLogEvent
ApiSuccess<T>
ApiUploadRequestOptions
AuthSession
AuthStrategy
Base transport-auth strategy.
AuthStrategyContext
Connection-scoped facilities available to authentication strategies.
BearerStrategy
Persistent bearer-token authentication backed by platform secure storage.
CallbackApiLogger
CookieStrategy
Browser-like persistent cookie authentication.
DeleteRequest<T>
DeveloperApiLogger
FlutterApiBridge
Global registry of named, connection-scoped API runtimes.
FlutterApiCredentialStorage
GetRequest<T>
NoAuthStrategy
No automatic authorization header. Per-session or per-request headers may still be supplied by the caller.
PatchRequest<T>
PostRequest<T>
PutRequest<T>
Server
Legacy default connection wrapper.
UploadFile
UploadNotifier
UploadProgress
Snapshot of an in-progress upload.
UploadRequest<T>

Enums

ApiCachePolicy
Controls whether a request may use cached data.
ApiCacheSource
ApiDataSource
Origin of data returned by an API operation.
ApiLogEventType
ApiLoggingLevel
Controls which package events are emitted.
ApiLogLevel
Severity retained for backward compatibility with custom ApiLoggers.
AuthSessionStatus
UploadMethod

Properties

apiProvider → StateNotifierProvider<ApiNotifier, AsyncValue<ApiResult>>
final
uploadProgressStreamProvider → StreamProvider<UploadProgress>
final
uploadProvider → StateNotifierProvider<UploadNotifier, AsyncValue<ApiResult>>
final

Functions

asResponseMap(dynamic value) → Map<String, dynamic>?
buildDioQueryParameters(Object? query) → Map<String, dynamic>?
enumWireValue(Enum value) → String
flattenQueryEntry({required Map<String, dynamic> output, required String key, required dynamic value}) → void
normalizeBody(Object? body) → Object?
normalizeBodyMap(Map value) → Map<String, dynamic>
normalizeMap(Object? value) → Map<String, dynamic>?
Normalizes generated DTO maps, query params, response bodies, and request bodies.
normalizeQuery(Object? value) → Map<String, dynamic>?
normalizeValue(dynamic value) → dynamic
shouldSkipValue(dynamic value) → bool
stableQueryString(Object? query) → String
tryToJson(dynamic value) → dynamic

Typedefs

ApiClientIdentityProvider = FutureOr<ApiClientIdentity?> Function()
ApiLogSink = void Function(ApiLogEvent event)