OmegaEnumField constructor

OmegaEnumField({
  1. Key? key,
  2. bool enabled = true,
  3. bool visible = true,
  4. required List<OmegaEnumData> data,
  5. String? label,
  6. double labelSize = 14,
  7. Color labelColor = Colors.black,
  8. String? validator(
    1. String?
    )?,
  9. dynamic onSaved(
    1. dynamic value,
    2. dynamic key
    )?,
  10. bool showRequiredLabel = false,
  11. String? selected,
  12. dynamic onSelect(
    1. dynamic value
    )?,
  13. TextStyle? labelStyle,
})

Implementation

OmegaEnumField({
  Key? key,
  this.enabled = true,
  this.visible = true,
  required this.data,
  this.label,
  this.labelSize = 14,
  this.labelColor = Colors.black,
  this.validator,
  this.onSaved,
  this.showRequiredLabel = false,
  this.selected,
  this.onSelect,
  this.labelStyle,
}) : super(key: key);