runAsService<T> method

T runAsService<T>(
  1. T delegate()
)

Implementation

T runAsService<T>(T Function() delegate) {
  return runZoned(
    delegate,
    zoneSpecification: ZoneSpecification(print: _print),
    zoneValues: {#serviceResolver: this},
  );
}