setUp<R> method

void setUp<R>(
  1. FutureOrReturningFn<R> body
)

The required SetUp for the EasyPrint package to work. Define it in your bootstrap.

Implementation

void setUp<R>(FutureOrReturningFn<R> body) {
  //, [PrintingFunction? printingFn]) {
  // if (printingFn != null) {
  //   this.printingFn = printingFn;
  // }
  runZonedGuarded(
    body,
    (e, st) {
      // ignore: only_throw_errors
      if (e is! _IgnoreError) throw e;
    },
    zoneSpecification: _printZoneSpec(),
    zoneValues: {#firstProgramZone: true},
  );
}