Methods
-
-
authorize({required String jwt, required String refreshToken})
→ Future<bool>
-
-
clearStorage()
→ Future
-
-
delete<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?, RestApiClientRequestOptions? options})
→ Future<Result<T>>
-
-
download<T>(String urlPath, dynamic savePath, {dynamic data, Map<String, dynamic>? queryParameters, RestApiClientRequestOptions? options, ProgressCallback? onReceiveProgress, CancelToken? cancelToken, bool deleteOnError = true, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?})
→ Future<Result<T>>
-
-
get<T>(String path, {Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?, RestApiClientRequestOptions? options})
→ Future<Result<T>>
-
-
getCached<T>(String path, {Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?})
→ Future<Result<T>>
-
-
getStreamed<T>(String path, {Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?, RestApiClientRequestOptions? options})
→ Stream<Result<T>>
-
-
head<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?, RestApiClientRequestOptions? options})
→ Future<Result<T>>
-
-
init()
→ Future<RestApiClient>
-
-
isAuthorized()
→ Future<bool>
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
patch<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?, RestApiClientRequestOptions? options})
→ Future<Result<T>>
-
-
post<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?, RestApiClientRequestOptions? options, bool cacheEnabled = false})
→ Future<Result<T>>
-
-
postCached<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?})
→ Future<Result<T>>
-
-
postStreamed<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?, RestApiClientRequestOptions? options})
→ Stream<Result<T>>
-
-
put<T>(String path, {dynamic data, Map<String, dynamic>? queryParameters, FutureOr<T> onSuccess(dynamic data)?, FutureOr<T> onError(dynamic data)?, RestApiClientRequestOptions? options})
→ Future<Result<T>>
-
-
-
setContentType(String contentType)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
unAuthorize()
→ Future<bool>
-