FlutterWidgetPropertyEditorKind constructor
FlutterWidgetPropertyEditorKind(
- String name
Implementation
factory FlutterWidgetPropertyEditorKind(String name) {
switch (name) {
case 'BOOL':
return BOOL;
case 'DOUBLE':
return DOUBLE;
case 'ENUM':
return ENUM;
case 'ENUM_LIKE':
return ENUM_LIKE;
case 'INT':
return INT;
case 'STRING':
return STRING;
}
throw Exception('Illegal enum value: $name');
}