ApiUtils 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

checkUrl(String? path) bool
get(String path, {dynamic data, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, ProgressCallback? onReceiveProgress, String contentType = Headers.jsonContentType, String accept = ACCEPT_HEADER}) Future<Response?>
getDioByPath(String? path) → Dio
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post(String path, {dynamic data, Map<String, dynamic>? queryParameters, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, String contentType = Headers.formUrlEncodedContentType, String accept = ACCEPT_HEADER}) Future<Response?>
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

inst ApiUtils
no setter

Static Methods

getDefaultDio() → Dio
getDio(bool checkToken) → Dio
updateToken(Dio dio) Future

Constants

ACCEPT_HEADER → const String