log method

void log(
  1. LogLevel level,
  2. String message
)

Implementation

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