WorkerBase class abstract

Base class for all workers.

Implementers

Constructors

WorkerBase()

Properties

hashCode int
The hash code for this object.
no setterinherited
logger Logger?
Logger of this worker.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

canResume(StateHead head) Future<bool>
Checks if server supports requesting a portion of the data.
close() Future<void>
Closes current worker and releases any resources associated with it.
connect(Uri url) Future<StateHead>
Connects to server and returns core information about the task, for example, file size.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
prepare(State state) Future<State?>
Returns a new state if state needs to be updated before start is called.
start(State state) Future<Stream<DataBody>>
Starts data transfer.
toString() String
A string representation of this object.
inherited
transferCompleted() Future<void>
Called when transfer is completed.

Operators

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