Downloading class
File downloading entry.
Constructors
- Downloading(String? checksum, String filename, int? size, {void onDownloaded(File)?})
- Downloading.completed(String? checksum, String filename, int? size, String path, {void onDownloaded(File)?})
- Creates a completed Downloading.
Properties
- checksum → String?
-
SHA-256 checksum of the file this Downloading is bound to.
final
- file ↔ File?
-
Downloaded file itself.
getter/setter pair
- filename → String
-
Filename of the file this Downloading is bound to.
final
-
future
→ Future<
File?> ? -
Returns Future completing when this Downloading is finished or
canceled.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- onDownloaded → void Function(File)?
-
Callback, called when the file is downloaded.
final
- progress → RxDouble
-
Progress of this Downloading.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → int?
-
Size in bytes of the file this Downloading is bound to.
final
-
status
→ Rx<
DownloadStatus> -
DownloadStatus of this Downloading.
final
Methods
-
cancel(
) → void - Cancels the file downloading.
-
markAsNotStarted(
) → void - Marks this Downloading as not started.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
String url, {String? to}) → Future< void> - Starts the file downloading.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited