of static method

Implementation

static MiniLoggerLevelEnum? of(String level) {
  var index = _levelStr.indexOf(level.toUpperCase());
  if (index > 0) {
    return all[index];
  }
  return null;
}