TaskProvider<T extends Task> class

A task provider allows to add tasks to the task service. A task provider is registered via {@link tasks.registerTaskProvider}.

Available extensions
Annotations
  • @JS()
  • @staticInterop
  • @anonymous

Constructors

TaskProvider({FutureOr<List<Task>> provideTasks(CancellationToken)?, FutureOr<Task> resolveTask(Task, CancellationToken)?})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
provideTasks FutureOr<List<T>> Function(CancellationToken)

Available on TaskProvider<T>, provided by the TaskProvider$Typings extension

getter/setter pair
resolveTask FutureOr<T> Function(T, CancellationToken)

Available on TaskProvider<T>, provided by the TaskProvider$Typings extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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