OmegaSearchField constructor
OmegaSearchField({
- Key? key,
- bool enabled = true,
- bool visible = true,
- String label = '',
- Color labelColor = Colors.black,
- required Color colorWhite,
- required Color colorIcon,
- required Color colorPrimary,
- String? hint,
- TextInputType keyboardType = TextInputType.text,
- List<
TextInputFormatter> ? inputFormatters, - String barText = 'Buscar',
- dynamic onSelect(
- dynamic
- dynamic onSaved(
- dynamic value,
- SearchFieldSource? key
- String? validator()?,
- bool useValidateToOpen = false,
- bool validateToOpen()?,
- bool showRequiredLabel = false,
- bool showPersistenceButton = false,
- Widget? persistencePage,
- required Future<
List< getSource(),SearchFieldSource> > - double labelSize = 14,
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,
}) : super(key: key);