SimpleApiRequest class

Constructors

SimpleApiRequest.init()
factory
SimpleApiRequest.withAuth()
factory
SimpleApiRequest.withBuilder(ResponseBuilder builder, {bool withAuth = false})
factory

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 path, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ResponseBuilder<T>? builder}) Future<Either<ActionRequestError, T?>?>
download(String path, dynamic savePath, {ProgressCallback? onReceiveProgress, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, bool deleteOnError = true, String lengthHeader = Headers.contentLengthHeader, dynamic data, Options? options}) Future<Response?>
get<T>(String path, {Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onReceiveProgress}) Future<Either<ActionRequestError, T?>?>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>(String path, {Map<String, dynamic>? data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, ResponseBuilder<T>? builder}) Future<Either<ActionRequestError, T?>?>
put<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, ResponseBuilder<T>? builder}) Future<Either<ActionRequestError, T?>?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

responseBuilder ResponseBuilder?
getter/setter pair