UserTask class

A task that the user of the app needs to attend to.

A UserTask is enqueued in the AppTaskController's queue.

Implementers

Constructors

UserTask(AppTaskExecutor _executor)

Properties

description String
read-only
enqueued DateTime
The time this task was added to the queue (enqueued).
read / write
executor TaskExecutor
The TaskExecutor that is to be executed once the user want to start this task.
read-only
expiresIn Duration
Returns a Duration until this task expires and is removed from the queue. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
read-only
instructions String
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state UserTaskState
The state of this task.
read / write
stateEvents Stream<UserTaskState>
A stream of state changes of this user task. [...]
read-only
task AppTask
The AppTask from which this user task originates from.
read-only
title String
read-only
type String
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onCancel(BuildContext context, {dynamic dequeue = false}) → void
Callback from app if this task is canceled. [...]
onDone(BuildContext context, {dynamic dequeue = false}) → void
Callback from app when this task is done. [...]
onStart(BuildContext context) → void
Callback from app when this task is to be started.
toString() String
A string representation of this object. [...]
override

Operators

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