Promise<T>.data constructor

const Promise<T>.data(
  1. T value, {
  2. @Default(true) bool isDone,
})

Implementation

const factory Promise.data(
  T value, {
  @Default(true) bool isDone,
}) = PromiseData<T>;