DioForNative class
Implemented types
Mixed in types
Methods
assureDioError (dynamic err , [RequestOptions requestOptions ] )
→ DioError
inherited
assureResponse <T > (dynamic response , [RequestOptions requestOptions ] )
→ Response <T >
inherited
checkCancelled (CancelToken cancelToken )
→ void
inherited
checkIfNeedEnqueue (Lock lock , EnqueueCallback callback )
→ FutureOr
inherited
checkOptions (dynamic method , dynamic options )
→ Options
inherited
clear ()
→ void
Clear the current Dio instance waiting queue.
inherited
close ({bool force = false } )
→ void
Shuts down the dio client. [...]
inherited
delete <T > (String path , {dynamic data , Map <String , dynamic > queryParameters , Options options , CancelToken cancelToken } )
→ Future <Response <T > >
Handy method to make http DELETE request, which is a alias of BaseDio.request
.
inherited
deleteUri <T > (Uri uri , {dynamic data , Options options , CancelToken cancelToken } )
→ Future <Response <T > >
Handy method to make http DELETE request, which is a alias of BaseDio.request
.
inherited
download (String urlPath , dynamic savePath , {ProgressCallback onReceiveProgress , Map <String , dynamic > queryParameters , CancelToken cancelToken , bool deleteOnError = true , dynamic data , Options options } )
→ Future <Response >
Download the file and save it in local. The default http method is "GET",
you can custom it by Options.method . [...]
override
downloadUri (Uri uri , dynamic savePath , {ProgressCallback onReceiveProgress , CancelToken cancelToken , bool deleteOnError = true , dynamic data , Options options } )
→ Future <Response >
Download the file and save it in local. The default http method is 'GET',
you can custom it by Options.method . [...]
override
get <T > (String path , {Map <String , dynamic > queryParameters , Options options , CancelToken cancelToken , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Handy method to make http GET request, which is a alias of BaseDio.request
.
inherited
getUri <T > (Uri uri , {Options options , CancelToken cancelToken , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Handy method to make http GET request, which is a alias of BaseDio.request
.
inherited
head <T > (String path , {dynamic data , Map <String , dynamic > queryParameters , Options options , CancelToken cancelToken } )
→ Future <Response <T > >
Handy method to make http HEAD request, which is a alias of BaseDio.request
.
inherited
headUri <T > (Uri uri , {dynamic data , Options options , CancelToken cancelToken } )
→ Future <Response <T > >
Handy method to make http HEAD request, which is a alias of BaseDio.request
.
inherited
listenCancelForAsyncTask <T > (CancelToken cancelToken , Future <T > future )
→ Future <T >
inherited
lock ()
→ void
Lock the current Dio instance. [...]
inherited
mergeOptions (Options opt , String url , dynamic data , Map <String , dynamic > queryParameters )
→ RequestOptions
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
patch <T > (String path , {dynamic data , Map <String , dynamic > queryParameters , Options options , CancelToken cancelToken , ProgressCallback onSendProgress , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Handy method to make http PATCH request, which is a alias of BaseDio.request
.
inherited
patchUri <T > (Uri uri , {dynamic data , Options options , CancelToken cancelToken , ProgressCallback onSendProgress , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Handy method to make http PATCH request, which is a alias of BaseDio.request
.
inherited
post <T > (String path , {dynamic data , Map <String , dynamic > queryParameters , Options options , CancelToken cancelToken , ProgressCallback onSendProgress , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Handy method to make http POST request, which is a alias of BaseDio.request
.
inherited
postUri <T > (Uri uri , {dynamic data , Options options , CancelToken cancelToken , ProgressCallback onSendProgress , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Handy method to make http POST request, which is a alias of BaseDio.request
.
inherited
put <T > (String path , {dynamic data , Map <String , dynamic > queryParameters , Options options , CancelToken cancelToken , ProgressCallback onSendProgress , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Handy method to make http PUT request, which is a alias of BaseDio.request
.
inherited
putUri <T > (Uri uri , {dynamic data , Options options , CancelToken cancelToken , ProgressCallback onSendProgress , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Handy method to make http PUT request, which is a alias of BaseDio.request
.
inherited
reject <T > (dynamic err )
→ Future <Response <T > >
Assure the final future state is failed!
inherited
request <T > (String path , {dynamic data , Map <String , dynamic > queryParameters , CancelToken cancelToken , Options options , ProgressCallback onSendProgress , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Make http request with options. [...]
inherited
requestUri <T > (Uri uri , {dynamic data , CancelToken cancelToken , Options options , ProgressCallback onSendProgress , ProgressCallback onReceiveProgress } )
→ Future <Response <T > >
Make http request with options. [...]
inherited
resolve <T > (dynamic response )
→ Future <Response <T > >
Assure the final future state is succeed!
inherited
toString ()
→ String
Returns a string representation of this object.
inherited
unlock ()
→ void
Unlock the current Dio instance. [...]
inherited