rc_widget library

Classes

BaseOptions
The base config for the Dio instance, used by Dio.options.
CancelToken
Controls cancellation of Dio's requests.
DecimalInputFormatter
DownloadOptions
ErrorInterceptorHandler
The handler for interceptors to handle error occurred during the request.
FormData
A class to create readable "multipart/form-data" streams. It can be used to submit forms and file uploads to http server.
HttpDownload
HttpGet
HttpHead
HttpHeadResponse
HttpImage
HttpOptions
HttpPost
HttpRequest
HttpResponse
HttpUpload
ImageOptions
IntegerInputFormatter
MnemonicInputFormatter
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
RcCalc
RcEncrypt
RcGestureDetector
RcHttp
RcIconButton
RcImageButton
RcInkWell
RcInputFormatters
RcKeyboardDismiss
RcKeyboardType
RcOrientation
RcOverlayStyle
RcQrCode
RcReport
RcSaveImage
RcScreenAdapt
RcStorage
RcStorageKey
RcSystemStyle
RcTag
RcTextButton
RcToast
RcToastTheme
RcTools
RequestInterceptorHandler
The handler for interceptors to handle before the request has been sent.
RequestOptions
The internal request option class that is the eventual result after BaseOptions and Options are composed.
Response<T>
The Response class contains the payload (could be transformed) that respond from the request, and other information of the response.
ResponseInterceptorHandler
The handler for interceptors to handle after respond.

Extensions

RcScreenAdaptExtension on num

Typedefs

ErrorJson<T> = T Function()
FromJson<T> = T Function(StringMap json)
HttpProgress = void Function(int, int)
OnError = (void Function(DioException error, ErrorInterceptorHandler handler)?)
OnRequest = (void Function(RequestOptions options, RequestInterceptorHandler handler)?)
OnResponse = (void Function(Response response, ResponseInterceptorHandler handler)?)
StringMap = Map<String, dynamic>

Exceptions / Errors

DioException
DioException describes the exception info when a request failed.