AWSFilePlatform.fromStream constructor

AWSFilePlatform.fromStream(
  1. Stream<List<int>> stream, {
  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>> stream, {
  super.name,
  super.contentType,
  required int size,
})  : _stream = stream,
      _inputFile = null,
      _inputBlob = null,
      _size = size,
      super.protected();