FittorBaseClient class abstract

Implementers

Constructors

FittorBaseClient.new({Duration defaultTimeout = const Duration(seconds: 30), bool enableLogging = false})

Properties

defaultTimeout Duration
final
enableLogging bool
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

addInterceptor(FittorInterceptor interceptor) → void
clearInterceptors() → void
close() → void
delete(String url, {Map<String, String>? headers, Map<String, String>? queryParameters}) Future<FittorResponse>
get(String url, {Map<String, String>? headers, Map<String, String>? queryParameters}) Future<FittorResponse>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch(String url, {dynamic body, Map<String, String>? headers, Map<String, String>? queryParameters}) Future<FittorResponse>
performRequest(FittorRequest request) Future<FittorResponse>
post(String url, {dynamic body, Map<String, String>? headers, Map<String, String>? queryParameters}) Future<FittorResponse>
put(String url, {dynamic body, Map<String, String>? headers, Map<String, String>? queryParameters}) Future<FittorResponse>
removeInterceptor(FittorInterceptor interceptor) → void
send(FittorRequest request) Future<FittorResponse>
toString() String
A string representation of this object.
inherited

Operators

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