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
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