Worker class

The default worker implementation.

Inheritance
Implementers

Constructors

Worker({int bufferSize = 200000})

Properties

bufferSize int
Internal buffer size.
final
hashCode int
The hash code for this object.
no setterinherited
logger Logger?
Logger of this worker.
getter/setter pairinherited
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.
override
close() Future<void>
Closes current worker and releases any resources associated with it.
override
connect(Uri url) Future<StateHead>
Connects to server and returns core information about the task, for example, file size.
override
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.
inherited
start(State state) Future<Stream<DataBody>>
Starts data transfer.
override
toString() String
A string representation of this object.
inherited
transferCompleted() Future<void>
Called when transfer is completed.
inherited

Operators

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