NetworkingApi class abstract
Interface defined to use the fluent networking functionalities
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
delete<
T> (String url, {Object? body, Options? options, RetryConfig? retryConfig, CacheConfig? cacheConfig}) → Future< ResponseResult< T> > - Makes a DELETE request to the specific url with an optional body and optional configurations
-
download<
T> (String url, dynamic savePath, {ProgressCallback? onReceiveProgress, Options? options, RetryConfig? retryConfig, CacheConfig? cacheConfig}) → Future< ResponseResult< T> > -
Downloads a file or binary from
urland saves it tosavePath. Optionally,onReceiveProgresscan be provided to monitor progress. -
get<
T> (String url, {Options? options, RetryConfig? retryConfig, CacheConfig? cacheConfig}) → Future< ResponseResult< T> > - Makes a GET request to the specific url with optional configurations
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patch<
T> (String url, {Object? body, Options? options, RetryConfig? retryConfig, CacheConfig? cacheConfig}) → Future< ResponseResult< T> > - Makes a PATCH request to the specific url with an optional body and optional configurations
-
post<
T> (String url, {Object? body, Options? options, RetryConfig? retryConfig, CacheConfig? cacheConfig}) → Future< ResponseResult< T> > - Makes a POST request to the specific url with an optional body and optional configurations
-
put<
T> (String url, {Object? body, Options? options, RetryConfig? retryConfig, CacheConfig? cacheConfig}) → Future< ResponseResult< T> > - Makes a PUT request to the specific url with an optional body and optional configurations
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited