DownloadJobInfo class

Snapshot of a native WebView download job.

Constructors

DownloadJobInfo({String? error, required String id, double? progress, String? resultFilePath, String? resumeDataBase64, DownloadJobState? state, WebUri? url})

Properties

error ↔ String?
Failure message when state is DownloadJobState_.FAILED.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
id ↔ String
Download job ID.
getter/setter pair
progress ↔ double?
Progress in the range 0.0-1.0, or null when unknown.
getter/setter pair
resultFilePath ↔ String?
Absolute destination path when native download is handled by the plugin.
getter/setter pair
resumeDataBase64 ↔ String?
Resume data from a failed or canceled iOS/macOS WKDownload.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state ↔ DownloadJobState?
Current job state.
getter/setter pair
url ↔ WebUri?
Source URL.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts instance to a map.
toMap({EnumMethod? enumMethod}) → Map<String, dynamic>
Converts instance to a map.
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

fromMap(Map<String, dynamic>? map, {EnumMethod? enumMethod}) → DownloadJobInfo?
Gets a possible DownloadJobInfo instance from a Map value.