common_bloc library

Classes

$ClearEventCopyWith<$Res>
$DeleteEventCopyWith<$Res>
$ErrorRequestStateCopyWith<$Res>
$ErrorRestStateCopyWith<$Res>
$ErrorRssStateCopyWith<$Res>
$FromDataEventCopyWith<$Res>
$GetEventCopyWith<$Res>
$LoadedRequestStateCopyWith<$Res>
$LoadedRestStateCopyWith<$Res>
$LoadedRssStateCopyWith<$Res>
$LoadingRequestStateCopyWith<$Res>
$LoadingRestStateCopyWith<$Res>
$LoadingRssStateCopyWith<$Res>
$PatchEventCopyWith<$Res>
$PostEventCopyWith<$Res>
$PutEventCopyWith<$Res>
$RequestStateCopyWith<$Res>
$RestEventCopyWith<$Res>
$RestStateCopyWith<$Res>
$RssStateCopyWith<$Res>
$UninitializedRequestStateCopyWith<$Res>
$UninitializedRestStateCopyWith<$Res>
$UninitializedRssStateCopyWith<$Res>
BaseOptions
The common config for the Dio instance. dio.options is a instance of BaseOptions
CancelToken
You can cancel a request by using a cancel token. One token can be shared with different requests. when a token's cancel method invoked, all requests with this token will be cancelled.
ClearEvent
DefaultTransformer
DeleteEvent
Dio
A powerful Http client for Dart, which supports Interceptors, Global configuration, FormData, File downloading etc. and Dio is very easy to use. [...]
DioMixin
ErrorRequestState
ErrorRestState
ErrorRssState
FormData
A class to create readable "multipart/form-data" streams. It can be used to submit forms and file uploads to http server.
FromDataEvent
GetEvent
Headers
HttpClientAdapter
HttpAdapter is a bridge between Dio and HttpClient. [...]
Interceptor
Dio instance may have interceptor(s) by which you can intercept requests or responses before they are handled by then or catchError.
Interceptors
InterceptorsWrapper
LoadedRequestState
LoadedRestState
LoadedRssState
LoadingRequestState
LoadingRestState
LoadingRssState
Lock
Add lock/unlock API for interceptors.
LogInterceptor
LogInterceptor is used to print logs during network requests. It's better to add LogInterceptor to the tail of the interceptor queue, otherwise the changes made in the interceptor behind A will not be printed out. This is because the execution of interceptors is in the order of addition.
MultipartFile
A file to be uploaded as part of a MultipartRequest. This doesn't need to correspond to a physical file. [...]
Options
Every request can pass an Options object which will be merged with Dio.options
PatchEvent
PostEvent
PutEvent
RedirectRecord
RequestBloc
RequestBloc - A bloc to make simple tasks [...]
RequestOptions
RequestState
State of RequestBloc
Response<T>
Response describes the http Response info.
ResponseBody
RestBloc
RestBloc - A bloc to make request to a REST API [...]
RestEvent
Events for RestBloc
RestState
State of RestBloc
RssBloc
RequestBloc - A bloc to fetch RSS feed
RssState
State of RssBloc
Transformer
Transformer allows changes to the request/response data before it is sent/received to/from the server. [...]
UninitializedRequestState
UninitializedRestState
UninitializedRssState

Constants

$RequestState → const _$RequestStateTearOff
const _$RequestStateTearOff()
$RestEvent → const _$RestEventTearOff
const _$RestEventTearOff()
$RestState → const _$RestStateTearOff
const _$RestStateTearOff()
$RssState → const _$RssStateTearOff
const _$RssStateTearOff()

Enums

DioErrorType
ResponseType
ResponseType indicates which transformation should be automatically applied to the response data by Dio.

Typedefs

CancelWrapper(Future) Future
EnqueueCallback() FutureOr
HeaderForEachCallback(String name, List<String> values) → void
InterceptorErrorCallback(DioError e) → dynamic
InterceptorSendCallback(RequestOptions options) → dynamic
InterceptorSuccessCallback(Response e) → dynamic
JsonDecodeCallback(String) → dynamic
The default Transformer for Dio. If you want to custom the transformation of request/response data, you can provide a Transformer by your self, and replace the DefaultTransformer by setting the dio.Transformer.
ProgressCallback(int count, int total) → void
Callback to listen the progress for sending/receiving data. [...]
RequestEncoder(String request, RequestOptions options) List<int>
ResponseDecoder(List<int> responseBytes, RequestOptions options, ResponseBody responseBody) String
ValidateStatus(int status) bool
VoidCallback() → dynamic

Exceptions / Errors

DioError
DioError describes the error info when request failed.
ResponseException
Exception for RestBloc