Injectable HTTP boundary for services. Implement or mock this contract in unit tests without initializing Hive, connectivity, or the default client. Implementations own their lifecycle; services never dispose injected clients.
- Implementers
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(
String path, {Object? body, Map< String, dynamic> ? query, Map<String, String> ? headers, bool withAuth = false, bool offlineSync = false, bool disableCache = false, CancelToken? cancelToken, ARS? ars, LikeRequestConfig? requestConfig}) → Future<ApiResult< Response> > -
get(
String path, {Map< String, dynamic> ? query, Map<String, String> ? headers, bool withAuth = false, bool disableCache = false, CancelToken? cancelToken, ARS? ars, LikeRequestConfig? requestConfig}) → Future<ApiResult< Response> > -
multipart(
String path, {String method = 'POST', Map< String, String> ? fields, dynamic filePaths, List<MultipartBytesFile> ? files, Map<String, String> ? headers, bool withAuth = false, bool offlineSync = false, CancelToken? cancelToken, ProgressCallback? onSendProgress, ProgressCallback? onReceiveProgress, ARS? ars, LikeRequestConfig? requestConfig}) → Future<ApiResult< Response> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
patch(
String path, {Object? body, Map< String, dynamic> ? query, Map<String, String> ? headers, bool withAuth = false, bool offlineSync = false, bool disableCache = false, CancelToken? cancelToken, ARS? ars, LikeRequestConfig? requestConfig}) → Future<ApiResult< Response> > -
post(
String path, {Object? body, Map< String, dynamic> ? query, Map<String, String> ? headers, bool withAuth = false, bool offlineSync = false, CancelToken? cancelToken, ARS? ars, LikeRequestConfig? requestConfig}) → Future<ApiResult< Response> > -
put(
String path, {Object? body, Map< String, dynamic> ? query, Map<String, String> ? headers, bool withAuth = false, bool offlineSync = false, bool disableCache = false, CancelToken? cancelToken, ARS? ars, LikeRequestConfig? requestConfig}) → Future<ApiResult< Response> > -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited