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
Dioinstance, 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.extrato sendIdempotency-Key. - FxRequestHeaders
- Keys and helpers for per-request HTTP headers.
-
FxResult<
T> - FxService
- FxServiceContext
- FxServiceProvider
-
Bundles
Dio+ApiEndpointsfor use in allAppServicesubclasses. - 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
Dioinstance, owned by AuthController.final - fxServiceProvider → FxServiceProvider
-
Bundles
Dio+ApiEndpointsfor use in allAppServicesubclasses.final
Functions
-
fxDio(
Ref ref) → Dio -
The shared authenticated
Dioinstance, owned by AuthController. -
fxService(
Ref ref) → FxServiceContext -
Bundles
Dio+ApiEndpointsfor use in allAppServicesubclasses.
Typedefs
-
FxResponse<
T> = Future< FxResult< T> >