AtomicNetworkClient class

Constructors

AtomicNetworkClient.new({String baseUrl = '', Map<String, String> defaultHeaders = const {}, Duration timeout = const Duration(seconds: 30), Client? httpClient})

Properties

baseUrl String
final
defaultHeaders Map<String, String>
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timeout Duration
final

Methods

addInterceptor(AtomicNetworkInterceptor interceptor) → void
delete<T>(String path, {Map<String, String>? headers, Map<String, dynamic>? queryParameters, dynamic body, AtomicResponseParser<T>? parser}) Future<AtomicResponse<T>>
dispose() → void
get<T>(String path, {Map<String, String>? headers, Map<String, dynamic>? queryParameters, AtomicResponseParser<T>? parser}) Future<AtomicResponse<T>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patch<T>(String path, {Map<String, String>? headers, Map<String, dynamic>? queryParameters, dynamic body, AtomicResponseParser<T>? parser}) Future<AtomicResponse<T>>
post<T>(String path, {Map<String, String>? headers, Map<String, dynamic>? queryParameters, dynamic body, AtomicResponseParser<T>? parser}) Future<AtomicResponse<T>>
put<T>(String path, {Map<String, String>? headers, Map<String, dynamic>? queryParameters, dynamic body, AtomicResponseParser<T>? parser}) Future<AtomicResponse<T>>
removeInterceptor(AtomicNetworkInterceptor interceptor) → void
toString() String
A string representation of this object.
inherited

Operators

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