TaskPlatform class abstract
The interface a task must implement.
- Inheritance
-
- Object
- PlatformInterface
- TaskPlatform
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onComplete
→ Future<
TaskSnapshotPlatform> -
Returns a Future once the task has completed.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- snapshot → TaskSnapshotPlatform
-
The latest
TaskSnapshot
for this task.no setter -
snapshotEvents
→ Stream<
TaskSnapshotPlatform> -
Returns a Stream of
TaskSnapshot
events.no setter
Methods
-
cancel(
) → Future< bool> - Cancels the current task.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → Future< bool> - Pauses the current task.
-
resume(
) → Future< bool> - Resumes the current task.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
verifyExtends(
TaskPlatform instance) → void -
Throws an AssertionError if
instance
does not extend TaskPlatform.