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. List<T>? initialValues,
  7. ValueChanged<T?>? onChanged,
  8. ValueChanged<List<T>>? onChangedMulti,
  9. String hint = 'Select',
  10. String searchHint = 'Search...',
  11. bool showSearch = true,
  12. Future<List<T>> onSearch(
    1. String query
    )?,
  13. bool disabled = false,
  14. InputDecoration? decoration,
  15. Widget? emptyWidget,
  16. Widget? loadingWidget,
  17. bool compareFn(
    1. T a,
    2. T b
    )?,
  18. String? errorText,
  19. EdgeInsetsGeometry? contentPadding,
  20. bool isLoading = false,
  21. String? loadingMessage,
  22. bool multiSelection = false,
  23. String? doneButtonText,
  24. ButtonStyle? doneButtonStyle,
  25. TextStyle? doneButtonTextStyle,
})

Creates a new SelectPickerNew instance.

Implementation

const SelectPickerNew({
  Key? key,
  this.items,
  this.titleBuilder,
  this.itemBuilder,
  this.initialValue,
  this.initialValues,
  this.onChanged,
  this.onChangedMulti,
  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,
  this.isLoading = false,
  this.loadingMessage,
  this.multiSelection = false,
  this.doneButtonText,
  this.doneButtonStyle,
  this.doneButtonTextStyle,
}) : super(key: key);