allowUnselect property
Whether the selected item can be deselected by selecting it again.
When true, users can deselect the current selection by clicking it again, setting the value to null. When false, once an item is selected, it remains selected until another item is chosen.
Implementation
final bool? allowUnselect;