StorageFileHandler<FileType extends Object, ReturnType extends Object> class

Annotations

Constructors

StorageFileHandler({required Future<CommitHandler<ReturnType>> commit(PlatformFile platformFile), required FutureOr<CommitHandler<String>?> maybeCommit([PlatformFile? platformFile]), required FileHandler<FileType> fileHandler, required ValueListenable<AsyncSnapshotWithProgress<ReturnType, TaskSnapshot>> snapshotListenable, required String? remoteFilePath})
const

Properties

commit Future<CommitHandler<ReturnType>> Function(PlatformFile platformFile)
This will commit the file(s) to storage. The return value can be used to revert the changes or to get the result of the commit. If you'd like to listen to the progress, you can find that in the snapshot parameter.
final
fileHandler FileHandler<FileType>
This will handle selecting and listening to the file(s) that are to be uploaded.
final
hashCode int
The hash code for this object.
no setterinherited
maybeCommit FutureOr<CommitHandler<String>?> Function([PlatformFile? platformFile])
final
remoteFilePath String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
snapshotListenable ValueListenable<AsyncSnapshotWithProgress<ReturnType, TaskSnapshot>>
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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