void log(LogLevel level, String message) { if (level.getLevel() <= logLevel.getLevel()) { // ignore: avoid_print print(message); } }