AWSFilePlatform.fromStream constructor

AWSFilePlatform.fromStream(
  1. Stream<List<int>> inputStream,
  2. {String? name,
  3. String? contentType,
  4. required int size}
)

Creates an AWSFile from a stream of bytes, optionally specifying a file name and contentType.

Implementation

AWSFilePlatform.fromStream(
  Stream<List<int>> inputStream, {
  super.name,
  super.contentType,
  required int size,
})  : _stream = inputStream,
      _inputFile = null,
      _size = size,
      super.protected();