BackgroundTaskContext<Params> class

Context passed to the background task.

Contains the parameters and a SendPort for sending results back to the main isolate.

Constructors

BackgroundTaskContext(Params params, SendPort sendPort)
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
params → Params
The parameters passed to the use case
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sendPort → SendPort
Port for sending messages back to the main isolate
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendData<T>(T data) → void
Send a data value back to the main isolate
sendDone() → void
Signal that the task is complete
sendError(Object error, [StackTrace? stackTrace]) → void
Send an error back to the main isolate
toString() → String
A string representation of this object.
inherited

Operators

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