ApiUtils class

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

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 non-existent 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
read-only

Static Methods

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

Constants

ACCEPT_HEADER → const String
"application/json,text/plain,*/*"