ApiService class
Methods
-
clearCookies()
→ Future<void>
-
Clears all cookies stored by Dio.
-
getCookies(String url)
→ Future<List<Cookie>>
-
Retrieves cookies for a specific request URL.
-
init({required String baseUrl, bool needToShowLog = false, bool needToLogRequests = false, NetworkMonitoringFunction? networkMonitoringFunction, int? unauthorizedStatusCode = 401, void onUnauthorizedCallBack()?})
→ Future<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 FutureOr<void> onSuccess(Response), String? handleErrorMessageKey})
→ Future<void>
-
-
toString()
→ String
-
A string representation of this object.
inherited