StorageAPI class

Constructors

StorageAPI({required StorageDatabase storageDatabase, required String apiUrl, Map<String, String> headers = const {'Content-Type' : 'application/json; charset=UTF-8', 'Accept' : 'application/json'}})

Properties

apiRequest APIRequest
getter/setter pair
apiUrl String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storageDatabase StorageDatabase
final

Methods

clear() Future
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
request<T>(String target, RequestType type, {Map<String, dynamic>? data, List<MultipartFile> files = const [], dynamic onFilesUpload(int bytes, int totalBytes)?, bool log = false, Map<String, String> headers = const {}, bool appendHeader = true, dynamic onNoConnection()?, String errorsField = 'errors'}) Future<APIResponse<T>>
toString() String
A string representation of this object.
inherited

Operators

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