TaskEntry<T> constructor

TaskEntry<T>(
  1. TaskCallback<T> task,
  2. int priority,
  3. ValueGetter<bool> canIgnore,
  4. String? debugLabel,
  5. Flow? flow, {
  6. int? id,
})

Implementation

TaskEntry(
    this.task, this.priority, this.canIgnore, this.debugLabel, this.flow,
    {this.id}) {
  // ignore: prefer_asserts_in_initializer_lists
  assert(() {
    debugStack = StackTrace.current;
    return true;
  }());
  completer = Completer<T>();
}