Upload class abstract

Abstract data structure for storing uploads.

Implementers

Constructors

Upload({required String url, required UploadMethod method, Map<String, String>? headers = const <String, String>{}, String? tag, bool allowCellular = true})
Default constructor which specicies a url and method. Sub classes may override the method for developer convenience.
const

Properties

allowCellular bool
If uploads are allowed to use cellular connections Defaults to true. If false, uploads will only use wifi connections
final
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
HTTP headers.
final
method UploadMethod
HTTP method to use for upload (POST,PUT,PATCH)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tag String?
Name of the upload request (only used on Android)
final
url String
Upload link
final

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