ApiRepository class

Constructors

ApiRepository()
🔑 Get singleton instance
factory

Properties

apiClient → ApiClient
final
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<T>({required String endpoint, required T fromJson(dynamic)}) → Future<ResponseModel<T>>
get<T>({required String endpoint, required T fromJson(dynamic), Map<String, dynamic>? queryParameters}) → Future<ResponseModel<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
post<T>({required String endpoint, dynamic body, required T fromJson(dynamic)}) → Future<ResponseModel<T>>
put<T>({required String endpoint, required T fromJson(dynamic), dynamic body}) → Future<ResponseModel<T>>
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

init({required String apiUrl, Map<String, dynamic>? appHeaders}) → Future<void>
🔑 Init function for plugin users