NetworkingApi class abstract

Interface defined to use the fluent networking functionalities

Constructors

NetworkingApi()

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 url and saves it to savePath. Optionally, onReceiveProgress can 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