Storage class

Constructors

Storage()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
storageDriver Map<String, StorageDriverInterface>
getter/setter pair

Methods

delete(String filename) Future
delete file from storage
disk(String disk) Storage
set the disk name
download(String filename) Future<DownloadableFile>
return the file as downloadable/stream file
exists(String filename) Future<bool>
check the file exists in storage
get(String filename) Future<List<int>?>
get stored file into bytes
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
put(String folder, List<int> bytes, {String? extension}) Future<String>
store file with bytes into storage
putRequestFile(String folder, RequestFile requestFile) Future<String>
store the request file into storage
stream(String filename) Future<StreamFile>
return the file as downloadable/stream file
toString() String
A string representation of this object.
inherited

Operators

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