FileContent constructor

FileContent(
  1. Uri reference,
  2. File file, {
  3. String? contentType,
  4. Encoding encoding = utf8,
  5. int? contentLength,
})

Create a file content of reference and file.

Implementation

FileContent(
  this.reference,
  this.file, {
  String? contentType,
  this.encoding = utf8,
  this.contentLength,
}) : mediaType = Head.mediaTypeOf(contentType);