ApiService class
classe ApiService
Constructors
- ApiService({required Dio dio})
- constructor
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, required Object data, Map< String, dynamic> ? headers, bool? followRedirects, CancelToken? cancelToken}) → Future<ApiServiceResponse> -
get(
{required String endpoint, required Map< String, dynamic> queryParameters, CancelToken? cancelToken, bool logResponse = true}) → Future<ApiServiceResponse> - get
-
isJSON(
dynamic str) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
{required String endpoint, required Object data, Map< String, dynamic> ? headers, bool? followRedirects, String? contentType, CancelToken? cancelToken}) → Future<ApiServiceResponse> - post
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited