FxSelectField<T> constructor

const FxSelectField<T>({
  1. Key? key,
  2. T? selectedValue,
  3. List<T>? selectedValues,
  4. required void onChanged(
    1. T value,
    2. List<T>? values
    ),
  5. List<T>? onSearch(
    1. String? search,
    2. List<T> items
    )?,
  6. required FxSelectFieldData<T> data,
  7. FxOverlayStyle overlayStyle = FxOverlayStyle.bottomSheet,
  8. String? label,
  9. String? hint,
  10. String? errorText,
  11. bool enabled = true,
  12. Widget? prefixIcon,
  13. Widget? suffixIcon,
  14. InputDecoration? decoration,
})

Implementation

const FxSelectField({
  super.key,
  this.selectedValue,
  this.selectedValues,
  required this.onChanged,
  this.onSearch,
  required this.data,
  this.overlayStyle = FxOverlayStyle.bottomSheet,
  this.label,
  this.hint,
  this.errorText,
  this.enabled = true,
  this.prefixIcon,
  this.suffixIcon,
  this.decoration
});