RefactoringKind constructor

RefactoringKind(
  1. String name
)

Implementation

factory RefactoringKind(String name) {
  switch (name) {
    case 'CONVERT_GETTER_TO_METHOD':
      return CONVERT_GETTER_TO_METHOD;
    case 'CONVERT_METHOD_TO_GETTER':
      return CONVERT_METHOD_TO_GETTER;
    case 'EXTRACT_LOCAL_VARIABLE':
      return EXTRACT_LOCAL_VARIABLE;
    case 'EXTRACT_METHOD':
      return EXTRACT_METHOD;
    case 'EXTRACT_WIDGET':
      return EXTRACT_WIDGET;
    case 'INLINE_LOCAL_VARIABLE':
      return INLINE_LOCAL_VARIABLE;
    case 'INLINE_METHOD':
      return INLINE_METHOD;
    case 'MOVE_FILE':
      return MOVE_FILE;
    case 'RENAME':
      return RENAME;
  }
  throw Exception('Illegal enum value: $name');
}