Upload constructor

const Upload({
  1. required String url,
  2. required UploadMethod method,
  3. Map<String, String>? headers = const <String, String>{},
  4. String? tag,
  5. bool allowCellular = true,
})

Default constructor which specicies a url and method. Sub classes may override the method for developer convenience.

Implementation

const Upload({
  required this.url,
  required this.method,
  this.headers = const <String, String>{},
  this.tag,
  this.allowCellular = true,
});