SelectPickerNew<T> constructor

const SelectPickerNew<T>({
  1. Key? key,
  2. List<T>? items,
  3. String titleBuilder(
    1. T item
    )?,
  4. Widget itemBuilder(
    1. BuildContext context,
    2. T item,
    3. bool isSelected,
    4. VoidCallback onTap,
    )?,
  5. T? initialValue,
  6. ValueChanged<T?>? onChanged,
  7. String hint = 'Select',
  8. String searchHint = 'Search...',
  9. bool showSearch = true,
  10. Future<List<T>> onSearch(
    1. String query
    )?,
  11. bool disabled = false,
  12. InputDecoration? decoration,
  13. Widget? emptyWidget,
  14. Widget? loadingWidget,
  15. bool compareFn(
    1. T a,
    2. T b
    )?,
  16. String? errorText,
  17. EdgeInsetsGeometry? contentPadding,
})

Creates a new SelectPickerNew instance.

Implementation

const SelectPickerNew({
  Key? key,
  this.items,
  this.titleBuilder,
  this.itemBuilder,
  this.initialValue,
  this.onChanged,
  this.hint = 'Select',
  this.searchHint = 'Search...',
  this.showSearch = true,
  this.onSearch,
  this.disabled = false,
  this.decoration,
  this.emptyWidget,
  this.loadingWidget,
  this.compareFn,
  this.errorText,
  this.contentPadding,
}) : super(key: key);