NetworkHelper class

Constructors

NetworkHelper()
factory

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

cancel(String tag) → void
deleteAsync<G, E>(String url, {Map<String, String>? headerMap, AsyncJsonStringConverter<G>? jsonProcessor, AsyncJsonStringConverter<E>? errorJsonProcessor, Duration timeout = const Duration(seconds: 10), String? username, String? password, String? token, String? tag}) Future<NetworkResult>
getAsync<G, E>(String url, {Map<String, String>? headerMap, AsyncJsonStringConverter<G>? jsonProcessor, AsyncJsonStringConverter<E>? errorJsonProcessor, Duration timeout = const Duration(seconds: 10), String? username, String? password, String? token, String? tag}) Future<NetworkResult>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
patchAsync<P, G, E>(String url, {Map<String, String>? headerMap, P? data, AsyncJsonStringConverter<P>? requestJsonProcessor, AsyncJsonStringConverter<G>? jsonProcessor, AsyncJsonStringConverter<E>? errorJsonProcessor, Duration timeout = const Duration(seconds: 10), String? username, String? password, String? token, String? tag}) Future<NetworkResult>
postAsync<P, G, E>(String url, {Map<String, String>? headerMap, P? data, AsyncJsonStringConverter<P>? requestJsonProcessor, AsyncJsonStringConverter<G>? jsonProcessor, AsyncJsonStringConverter<E>? errorJsonProcessor, Duration timeout = const Duration(seconds: 10), String? username, String? password, String? token, String? tag}) Future<NetworkResult>
putAsync<P, G, E>(String url, {Map<String, String>? headerMap, P? data, AsyncJsonStringConverter<P>? requestJsonProcessor, AsyncJsonStringConverter<G>? jsonProcessor, AsyncJsonStringConverter<E>? errorJsonProcessor, Duration timeout = const Duration(seconds: 10), String? username, String? password, String? token, String? tag}) Future<NetworkResult>
toString() String
A string representation of this object.
inherited

Operators

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