OmegaSearchField constructor

OmegaSearchField({
  1. Key? key,
  2. bool enabled = true,
  3. bool visible = true,
  4. String label = '',
  5. Color labelColor = Colors.black,
  6. required Color colorWhite,
  7. required Color colorIcon,
  8. required Color colorPrimary,
  9. String? hint,
  10. TextInputType keyboardType = TextInputType.text,
  11. List<TextInputFormatter>? inputFormatters,
  12. String barText = 'Buscar',
  13. dynamic onSelect(
    1. dynamic
    )?,
  14. dynamic onSaved(
    1. dynamic value,
    2. SearchFieldSource? key
    )?,
  15. String? validator(
    1. String?
    )?,
  16. bool useValidateToOpen = false,
  17. bool validateToOpen()?,
  18. bool showRequiredLabel = false,
  19. bool showPersistenceButton = false,
  20. Widget? persistencePage,
  21. required Future<List<SearchFieldSource>> getSource(),
  22. double labelSize = 14,
  23. TextStyle? labelStyle,
})

Implementation

OmegaSearchField({
  Key? key,
  this.enabled = true,
  this.visible = true,
  this.label = '',
  this.labelColor = Colors.black,
  required this.colorWhite,
  required this.colorIcon,
  required this.colorPrimary,
  this.hint,
  this.keyboardType = TextInputType.text,
  this.inputFormatters,
  this.barText = 'Buscar',
  this.onSelect,
  this.onSaved,
  this.validator,
  this.useValidateToOpen = false,
  this.validateToOpen,
  this.showRequiredLabel = false,
  this.showPersistenceButton = false,
  this.persistencePage,
  required this.getSource,
  this.labelSize = 14,
  this.labelStyle,
}) : super(key: key);