blueprint_network library

HTTP client, Dio, services, Firebase client, and networking utilities.

ApiEndpoints is exported from blueprint_flutter_core.dart with AppConfig.

import 'package:blueprint_flutter_core/blueprint_network.dart';

Classes

FxApiClient
Configured Dio HTTP client used by all foundation services.
FxAuthInterceptor
Injects Bearer tokens and handles auth failures for all outgoing requests.
FxDioProvider
The shared authenticated Dio instance, owned by AuthController.
FxError
FxErrorMapper
Maps raw DioExceptions into typed NetworkException or UnauthorizedException errors that the rest of the app can handle.
FxFirebaseClient
Initializes Firebase using the platform-appropriate FirebaseOptions.
FxHeadersInterceptor
Adds enterprise-oriented headers on every outbound request.
FxLogInterceptor
Logs all requests and responses in development/staging. Silenced automatically in production via FxLogger.
FxRequestExtras
Key for RequestOptions.extra / Options.extra to send Idempotency-Key.
FxRequestHeaders
Keys and helpers for per-request HTTP headers.
FxResult<T>
FxService
FxServiceContext
FxServiceProvider
Bundles Dio + ApiEndpoints for use in all AppService subclasses.
FxTokenManager
Holds the access token in memory only — never persisted to disk.

Extensions

FxErrorPatterns on FxError
Adds pattern-matching-related methods to FxError.
FxResultPatterns on FxResult<T>
Adds pattern-matching-related methods to FxResult.

Properties

fxDioProvider FxDioProvider
The shared authenticated Dio instance, owned by AuthController.
final
fxServiceProvider FxServiceProvider
Bundles Dio + ApiEndpoints for use in all AppService subclasses.
final

Functions

fxDio(Ref ref) → Dio
The shared authenticated Dio instance, owned by AuthController.
fxService(Ref ref) FxServiceContext
Bundles Dio + ApiEndpoints for use in all AppService subclasses.

Typedefs

FxResponse<T> = Future<FxResult<T>>