runWith<R> method

R runWith<R>(
  1. R body()
)

Runs body with this context installed as the ambient one.

Implementation

R runWith<R>(R Function() body) =>
    runZoned(body, zoneValues: {zoneKey: this});