ApiRepository class

Constructors

ApiRepository.new()
πŸ”‘ 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