ApiService class

Constructors

ApiService.new(String baseUrl)

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, Map<String, dynamic>? headers, bool showErrorToast = true}) Future
get({required String endpoint, String? baseUrl, Map<String, dynamic>? queryParams, Map<String, dynamic>? headers, 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, Map<String, dynamic>? headers, bool showErrorToast = true}) Future
put({required String endpoint, String? baseUrl, dynamic body, Map<String, dynamic>? queryParams, Map<String, dynamic>? headers, 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

Operators

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