FCCDropdownList<T> constructor
const
FCCDropdownList<T> ({
- Key? key,
- String? labelText,
- T? value,
- List<
DropdownMenuItem< ? items,T> > - ValueChanged<
T?> ? onChanged, - FormFieldValidator<
T> ? validator, - bool readOnly = false,
- Color? fillColor,
- double? fontSize,
- FontWeight? fontWeight,
- String? fontFamily,
- Color? textColor,
- TextStyle? style,
- TextAlign? textAlign,
- String? helperText,
- String? hintText,
- bool required = false,
- String? requiredMessage,
- bool use3DEffect = true,
- bool isPill = false,
- bool enableFocusEffect = true,
- String? tooltip,
- String? semanticLabel,
- bool isSearchable = false,
- String? searchPlaceholder,
- Duration searchDebounce = const Duration(milliseconds: 250),
- Future<
List< asyncItemsFetcher(DropdownMenuItem< >T> >- String query
- String searchTextResolver(
- T value
- bool showClearButton = false,
- List<
FCCDropdownGroup< ? groups,T> > - Widget itemBuilder(
- BuildContext context,
- T value,
- bool isSelected
- bool pinSelectedOnTop = false,
- bool autoFlipDropdown = true,
- double maxDropdownHeight = 260.0,
Implementation
const FCCDropdownList({
super.key,
this.labelText,
this.value,
this.items,
this.onChanged,
this.validator,
this.readOnly = false,
this.fillColor,
this.fontSize,
this.fontWeight,
this.fontFamily,
this.textColor,
this.style,
this.textAlign,
this.helperText,
this.hintText,
this.required = false,
this.requiredMessage,
this.use3DEffect = true,
this.isPill = false,
this.enableFocusEffect = true,
this.tooltip,
this.semanticLabel,
// NEW
this.isSearchable = false,
this.searchPlaceholder,
this.searchDebounce = const Duration(milliseconds: 250),
this.asyncItemsFetcher,
this.searchTextResolver,
this.showClearButton = false,
this.groups,
this.itemBuilder,
this.pinSelectedOnTop = false,
this.autoFlipDropdown = true,
this.maxDropdownHeight = 260.0,
});