SearchItemPicker<T> constructor
SearchItemPicker<T> ({})
Implementation
SearchItemPicker({
super.key,
required this.items,
required this.onChanged,
required this.hint,
this.initialValue,
this.disabledHint,
this.prefixIcon,
this.suffixIcon,
this.border,
this.elevation = 0,
this.borderRadius = 0,
this.color = Colors.white,
}) : assert(items.isEmpty ||
initialValue == null ||
items
.where((ListItem<T> item) => item.value == initialValue)
.length ==
1);