AWSFilePlatform class

The html implementation of AWSFile.

Inheritance

Constructors

AWSFilePlatform.fromBlob(Blob blob, {String? contentType})
Creates an AWSFile from html Blob.
AWSFilePlatform.fromData(List<int> data, {String? name, String? contentType})
Creates an AWSFile from a path, optionally specifying a file name.
AWSFilePlatform.fromFile(File file, {String? contentType})
Creates an AWSFile from html File.
AWSFilePlatform.fromPath(String path, {String? name, String? contentType})
Creates an AWSFile from a path, optionally specifying a file name.
AWSFilePlatform.fromStream(Stream<List<int>> stream, {String? name, String? contentType, required int size})
Creates an AWSFile from a stream of bytes, optionally specifying a file name and contentType.

Properties

bytes List<int>?
The cached bytes content of the file.
finalinherited
contentType Future<String?>
The content type of the file if provided.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
name String?
The name of the file if provided or read from OS.
finalinherited
path String?
The path of the file if provided.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Future<int>
Size of the file.
no setteroverride
stream Stream<List<int>>
Stream of the file content.
no setteroverride

Methods

getChunkedStreamReader() → ChunkedStreamReader<int>
Returns a ChunkedStreamReader over the stream of bytes of the file.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openRead([int? start, int? end]) Stream<List<int>>
Creates a new independent Stream for the contents of this file starting from start and ending at end.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited