NetworkRequest<T> class
Constructors
-
NetworkRequest({required String url, Transformer? transformer, Map<
String, dynamic> ? queryParameters, dynamic data, Map<String, String> ? requestHeaders, List<String> ? uploadFiles})
Properties
- data → dynamic
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
queryParameters
→ Map<
String, dynamic> ? -
final
-
requestHeaders
↔ Map<
String, String> ? -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transformer → Transformer?
-
final
-
uploadFiles
→ List<
String> ? -
final
- url → String
-
final
Methods
-
download(
{required String savePath, OnProgress? onProgress}) → Future< String> -
get(
) → Future< T?> -
getRespones(
) → Future< Response> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
post(
) → Future< T?> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
setBaseUrl(
String baseUrl) → void -
setProxy(
String proxy) → void