Singleton constructor. Calling new Logger(name)
will return the same
actual instance whenever it is called with the same string name.
Source
factory Logger(String name) { return _loggers.putIfAbsent(name, () => new Logger._named(name)); }
Singleton constructor. Calling new Logger(name)
will return the same
actual instance whenever it is called with the same string name.
factory Logger(String name) { return _loggers.putIfAbsent(name, () => new Logger._named(name)); }