MultipartData constructor

const MultipartData({
  1. String? name,
  2. String? value,
  3. Uint8List? data,
  4. String? fileName,
  5. String? contentType,
})

Implementation

const MultipartData({
  this.name,
  this.value,
  this.data,
  this.fileName,
  this.contentType,
}) : assert(
        data == null || contentType != null,
        'You must provide a [contentType] (e.g., "image/png", "application/pdf") when uploading binary [data].',
      );