File constructor

File(
  1. Iterable<Object> blobParts,
  2. String filename, {
  3. EndingType endings = EndingType.transparent,
  4. String type = '',
  5. int? lastModified,
})

Returns a newly constructed File.

MDN reference

Implementation

File(
  Iterable<Object> blobParts,
  String filename, {
  EndingType endings = EndingType.transparent,
  String type = '',
  int? lastModified,
})  : name = filename,
      lastModified = lastModified ?? 0 {
  _blob = Blob(blobParts, endings: endings, type: type);
}