connection_manager library
Classes
-
ApiCallBuilder<
T extends Decodable, E extends Decodable> -
This widget helps to manage transparently an API call in the widget tree
showing a loading widget while performing the request and providing access
to the response in the
builder
parameter, to show a proper widget on http call completion. - ApiCallErrorState
- ApiCallInitialState
-
ApiCallLoadedState<
T, E> - ApiCallLoadingState
-
APIResponse<
T, E> -
Generic callback for API response.
Explicitally specify
T
andE
to decode correctly the content. -
BaseConnectionManager<
E extends Decodable> - CancelToken
-
Controls cancellation of
Dio
's requests. -
ConnectionManager<
E extends Decodable> - Class to manage API and network calls. It can be instantiated as a singleton to use a single instance of it all through the app.
-
ConnectionManagerStub<
E extends Decodable> - Decodable
- Decodable is an abstract class that exposes a factory method to override to be used as decodable object in API call.
- FileData
- This class is used to pass files in formData body
-
PaginatedApiCallBuilder<
T extends Decodable, E extends Decodable> -
This widget helps to manage transparently a paginated API call in the widget tree
showing a loading widget while performing the request and providing access
to the response in the
builder
parameter, to show a proper widget on http call completion. -
PaginatedApiCallCubit<
T extends Decodable, E extends Decodable> - PaginatedApiCallEmpty
- PaginatedApiCallError
- PaginatedApiCallInitial
- PaginatedApiCallLoading
-
PaginatedApiCallLoadingNewPage<
T extends Decodable> - PaginatedApiCallState
-
PaginatedApiCallSuccess<
T extends Decodable> -
PaginatedAPIResponse<
T, E> -
Generic paginated response for an API call.
Explicitally specify
T
andE
to decode correctly the content. -
SingleApiCallCubit<
T extends Decodable, E extends Decodable> - SingleApiCallState
Enums
- ApiBodyType
- Type for the body of the API call
- ApiRequestType
- CRUD type for API request.
Typedefs
-
APIRequest<
T extends Decodable, E extends Decodable> = Future< APIResponse< Function()T, E> > -
PaginatedAPIRequest<
T extends Decodable, E extends Decodable> = Future< PaginatedAPIResponse< Function(int page, Map<T, E> >String, String> ? query)