AWSFile.fromStream constructor

AWSFile.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

factory AWSFile.fromStream(
  Stream<List<int>> stream, {
  String? name,
  String? contentType,
  required int size,
}) = AWSFilePlatform.fromStream;