AWSFilePlatform.fromFile constructor

AWSFilePlatform.fromFile(
  1. File file, {
  2. String? contentType,
})

Creates an AWSFile from html File.

Implementation

AWSFilePlatform.fromFile(
  File file, {
  super.contentType,
})  : _stream = null,
      _inputFile = file,
      _inputBlob = null,
      _size = file.size,
      super.protected();