untilWhen<U> method

Until<T> untilWhen<U>(
  1. U value, {
  2. bool? detach,
})

Waits until the reactive value equals value.

Equivalent to until((v) => v == value).

Example:

final status = Signal('loading');
await status.untilWhen('ready');

Implementation

Until<T> untilWhen<U>(U value, {bool? detach}) =>
    Until<T>.when(this, value as T, detach: detach);