ApiService 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
-
init({required String baseUrl})
→ void
-
Must be called once before using request.
Example:
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
request({required HttpMethod method, required String url, dynamic data, Map<String, dynamic>? queryParameters, Options? options, CancelToken? cancelToken, void onSendProgress(int, int)?, void onReceiveProgress(int, int)?, required void onCatchDioException(DioException), required void onCatchException(dynamic), required void onSuccess(Response)})
→ Future<void>
-
-
toString()
→ String
-
A string representation of this object.
inherited