RefactoringProblemSeverity constructor

RefactoringProblemSeverity(
  1. String name
)

Implementation

factory RefactoringProblemSeverity(String name) {
  switch (name) {
    case 'INFO':
      return INFO;
    case 'WARNING':
      return WARNING;
    case 'ERROR':
      return ERROR;
    case 'FATAL':
      return FATAL;
  }
  throw Exception('Illegal enum value: $name');
}