ApiSource mixin

Properties

client → Client
no setter
connectivity Connectivity
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
no setter

Methods

deleteApi<T>(Uri uri, T mapperFunction(dynamic value), {Map<String, String>? headers}) Future<T>
getApi<T>(Uri uri, T mapperFunction(dynamic value), {Map<String, String>? headers, bool sendHeaders = true}) Future<T>
getHeaders(Map<String, String> headers) Map<String, String>
getRequestBody(dynamic body) → dynamic
multipartApi<T>(Uri uri, Map<String, String> fields, String filePath, T mapperFunction(dynamic value), {Map<String, String>? headers}) Future<T>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchApi<T>(Uri uri, Map<String, dynamic> body, T mapperFunction(dynamic value), {Map<String, String>? headers}) Future<T>
postApi<T>(Uri uri, dynamic body, T mapperFunction(dynamic value), {Map<String, String>? headers}) Future<T>
putApi<T>(Uri uri, dynamic body, T mapperFunction(dynamic value), {Map<String, String>? headers}) Future<T>
toString() String
A string representation of this object.
inherited

Operators

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