withStemClock<T> function

T withStemClock<T>(
  1. StemClock clock,
  2. T body()
)

Runs body using clock as the active clock for this zone.

Implementation

T withStemClock<T>(StemClock clock, T Function() body) {
  return runZoned(body, zoneValues: {_zoneClockKey: clock});
}