EnumField constructor

EnumField({
  1. required String name,
  2. required List<EnumValue> values,
  3. String? id,
  4. bool showInList = false,
  5. bool isRequired = false,
  6. int sort = 0,
  7. FormFieldValidator<Object>? validator,
  8. FieldType type = FieldType.enumField,
})

Implementation

EnumField({
  required super.name,
  required this.values,
  String? id,
  super.showInList,
  super.isRequired,
  super.sort,
  super.validator,
  super.type = FieldType.enumField,
}) : super(id: id ?? toSnakeCase(name));