api_service library
Classes
-
APIResponse<
T> - BaseAPIInput
- BaseAPIService
- BaseRestAPIInput
- BaseUploadAPIInput
- HTTPHeader
- HTTPStatus
- JsonArray
- JsonObject
- Log
- LoggerOutput
-
Default implementation of
LogOutput
. - NetworkLogger
- NetworkLogInterceptor
-
A simple dio log interceptor (mainly inspired by the built-in dio
LogInterceptor
), which has coloring features and json formatting so you can have a better readable output. - NetworkRequestOptions
- PrettyLogPrinter
- UploadFileAPIData
Enums
Mixins
Extensions
-
HeaderExt
on Map<
String, dynamic> - RequestOptionsExt on RequestOptions
- RestRequestOptionExt on BaseAPIInput
- UploadRequestOptionExt on BaseUploadAPIInput
Constants
-
allOfLogOptions
→ const List<
LogOption> -
defaultLogOptions
→ const List<
LogOption> -
noneOfLogOptions
→ const List<
LogOption>
Typedefs
-
Decoder<
T extends Object> = T Function(Object? data) - JSONArrayAlias = List
-
JSONObjectAlias
= Map<
String, dynamic> -
Params
= Map<
String, dynamic> -
ResponseHeader
= Map<
Object, dynamic> -
ResultParser<
T> = T Function(Map< String, dynamic> data)