selectedItemBuilder property
Builder for displaying the selected item when showSelected is true.
The builder receives:
context: The build contextitem: The selected itemonClear: Callback to clear the selection and show the search box
If not provided, a default display using itemBuilder will be used.
Implementation
final Widget Function(BuildContext context, T item, VoidCallback onClear)?
selectedItemBuilder;