instance property

Implementation

static NotificationCenter get instance {
  if (_singleton == null) {
    _singleton = NotificationCenter._init();
    hierarchicalLoggingEnabled = true;
//      Logger.root.onRecord.listen((record) {
//        print('${record.level.name}: ${record.time}: ${record.message}');
//      });
    _singleton!.log.level = Level.WARNING;
  }
  return _singleton!;
}