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
-
delete({required String endpoint, String? baseUrl, dynamic body, Map<String, dynamic>? queryParams, bool showErrorToast = true})
→ Future
-
-
get({required String endpoint, String? baseUrl, Map<String, dynamic>? queryParams, bool showErrorToast = true})
→ Future
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
post({required String endpoint, String? baseUrl, dynamic body, Map<String, dynamic>? queryParams, bool showErrorToast = true})
→ Future
-
-
put({required String endpoint, String? baseUrl, dynamic body, Map<String, dynamic>? queryParams, bool showErrorToast = true})
→ Future
-
-
safeRequest<T>({required Future request(), T? defaultValue, bool showToastOnError = true})
→ Future<T?>
-
-
toString()
→ String
-
A string representation of this object.
inherited