ApiServices class
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
-
clearAuthToken()
→ void
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
request({required ApiMethod method, required String url, dynamic requestData, Map<String, dynamic>? queryParameters, bool useWithoutToken = false, bool cacheResponse = false, Duration cacheDuration = const Duration(minutes: 30), CancelToken? cancelToken, void onSendProgress(int, int)?, void onReceiveProgress(int, int)?})
→ Future<Map<String, dynamic>>
-
-
setAuthBearerToken(String token)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
uploadMultipleFiles({required String url, required List<String> filePaths, String fileKey = 'files', Map<String, dynamic>? formData, bool useWithoutToken = false, CancelToken? cancelToken, void onSendProgress(int, int)?})
→ Future<List<String>>
-
-
uploadSingleFile({required String url, required String filePath, String fileKey = 'file', Map<String, dynamic>? formData, bool useWithoutToken = false, CancelToken? cancelToken, void onSendProgress(int, int)?})
→ Future<String>
-