NetworkHelper class
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, {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, {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, {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, {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, {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