convertLogLevel function Null safety

Level convertLogLevel(
  1. LogLevel level
)

Implementation

Level convertLogLevel(LogLevel level) {
  switch (level) {
    case LogLevel.error:
      return Level.error;
    case LogLevel.info:
      return Level.info;
    case LogLevel.none:
      return Level.nothing;
    case LogLevel.verbose:
      return Level.verbose;
    case LogLevel.warning:
      return Level.warning;
    default:
      return Level.nothing;
  }
}