FirefileController class

Use uploadFile method for uploading files.

tasks - list of all tasks.

allSuccess - checks if all the tasks were completed successfully.

allDone - checks if all the tasks were executed with or without errors.

Do not use the UploadTask.cancel() method directly to cancel the task.

  • Instead, use this cancelTask method.

  • For other cases, you can refer to the available UploadTask methods.

Constructors

FirefileController({bool removeOnCancel = false, List<FirefileTask>? initialTasks})

Properties

allDone bool
no setter
allSuccess bool
no setter
eventId int
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
removeOnCancel bool
This flag affects whether the task will be removed from the task list if the task is canceled by this cancelTask method.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tasks List<FirefileTask>
final

Methods

cancelTask(FirefileTask task, {bool? removeOnCancel}) → void
If removeOnCancel argument is provided, FirefileController.removeOnCancel will be ignored for this task. Else affects by FirefileController.removeOnCancel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uploadFile({File? file, Uint8List? data, String? childPath, String? visibleName, SettableMetadata? metadata, String? refPath}) → UploadTask
You can upload file using File or Uint8List byte array.

Operators

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