RefactoringMethodParameterKind constructor
RefactoringMethodParameterKind(
- String name
Implementation
factory RefactoringMethodParameterKind(String name) {
switch (name) {
case 'REQUIRED':
return REQUIRED;
case 'POSITIONAL':
return POSITIONAL;
case 'NAMED':
return NAMED;
}
throw Exception('Illegal enum value: $name');
}