dynamic withLoggerOff(dynamic handler())

Source

static withLoggerOff(handler()) {
  return runZoned(handler, zoneValues: {
    "dsa.logger.print": false
  });
}