setup method Null safety

void setup()

Setup logger configuration.

Implementation

void setup() {
  Logger.root.level = Level.ALL;
  Logger.root.onRecord.listen(
    (LogRecord rec) {
      // ignore: avoid_print
      print(
        '[${rec.time} | ${rec.loggerName} | ${rec.level.name}] ${rec.message}',
      );
    },
  );
}