SelectPickerNew<T> constructor
const
SelectPickerNew<T> ({
- Key? key,
- List<
T> ? items, - String titleBuilder(
- T item
- Widget itemBuilder(
- BuildContext context,
- T item,
- bool isSelected,
- VoidCallback onTap,
- T? initialValue,
- ValueChanged<
T?> ? onChanged, - String hint = 'Select',
- String searchHint = 'Search...',
- bool showSearch = true,
- Future<
List< onSearch(T> >- String query
- bool disabled = false,
- InputDecoration? decoration,
- Widget? emptyWidget,
- Widget? loadingWidget,
- bool compareFn(
- T a,
- T b
- String? errorText,
- 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);