DownloaderUtils class
Required for the initialization of downloadFlow
Constructors
- DownloaderUtils({required ProgressInterface progress, Dio? client, required File file, bool deleteOnCancel = false, required VoidCallback onDone, required ProgressCallback progressCallback, required VoidCallback error})
Properties
- client ↔ Dio?
-
Dio Client for HTTP Request
getter/setter pair
- deleteOnCancel ↔ bool
-
should delete when cancel?
getter/setter pair
- error → VoidCallback
-
final
- file ↔ File
-
Setup a location to store the downloaded file
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- onDone → VoidCallback
-
Function to be called when the download has finished.
final
- progress → ProgressInterface
-
Notification Progress Channel Inteface
Please use ProgressImplementation when called
final
- progressCallback → ProgressCallback
-
Function with the current values of the download
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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