StorageFileHandler<FileType extends Object, ReturnType extends Object> class
- Annotations
Constructors
-
StorageFileHandler({required Future<
CommitHandler< commit(PlatformFile platformFile), required FutureOr<ReturnType> >CommitHandler< maybeCommit([PlatformFile? platformFile]), required FileHandler<String> ?>FileType> fileHandler, required ValueListenable<AsyncSnapshotWithProgress< snapshotListenable, required String? remoteFilePath})ReturnType, TaskSnapshot> > -
const
Properties
-
commit
→ Future<
CommitHandler< Function(PlatformFile platformFile)ReturnType> > -
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< Function([PlatformFile? platformFile])String> ?> -
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