AppNetwork class abstract final

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

baseUrl ↔ String
getter/setter pair
defaultHeaders → Map<String, String>
final
defaultTimeout ↔ Duration
getter/setter pair
onRequest ↔ FutureOr<void> Function(String method, Uri uri, Map<String, String> headers, Object? body)?
getter/setter pair
onResponse ↔ FutureOr<void> Function(NetworkResponse response)?
getter/setter pair

Static Methods

clearBearerToken() → void
delete<T>(String path, {Map<String, String>? headers, Map<String, dynamic>? queryParams, Duration? timeout}) → Future<NetworkResponse<T>>
get<T>(String path, {Map<String, String>? headers, Map<String, dynamic>? queryParams, Duration? timeout}) → Future<NetworkResponse<T>>
patch<T>(String path, {Object? body, Map<String, String>? headers, Map<String, dynamic>? queryParams, Duration? timeout}) → Future<NetworkResponse<T>>
post<T>(String path, {Object? body, Map<String, String>? headers, Map<String, dynamic>? queryParams, Duration? timeout}) → Future<NetworkResponse<T>>
put<T>(String path, {Object? body, Map<String, String>? headers, Map<String, dynamic>? queryParams, Duration? timeout}) → Future<NetworkResponse<T>>
setBearerToken(String token) → void