inStep<R> static method

R inStep<R>(
  1. String? step,
  2. R body()
)

Runs body under step, as the request that caused it did: every event below it carries the step. A null step runs body as it is.

Implementation

static R inStep<R>(String? step, R Function() body) =>
    step == null ? body() : runZoned(body, zoneValues: {stepKey: step});