State class

Represents a download task that will be persisted to disk. A state is deleted when the task is completed.

Constructors

State(StateHead head)

Properties

conns Map<String, ConnState>
Connection state, only applicable to a parallel worker.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
Core information about a task such as URL, file size etc.
final
parallel bool
Indicates if a parallel worker is used.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transferred int
Number of bytes transferred.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJSON() String
Serializes a state to a JSON string.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJSON(String json) State
Deserializes a state from a JSON string.