runZoned<T> method

T runZoned<T>(
  1. T body()
)

Runs body inside the capture zone. Convenience wrapper around install + Zone.run.

Implementation

T runZoned<T>(T Function() body) {
  final zone = install();
  return zone.run(body);
}