canClearSelection property

bool canClearSelection
final

When true, a clear button is shown on the closed field while there is a selection, allowing the user to reset it back to the empty/hint state.

For single-select this sets the value back to null; for multi-select it clears all selected items. Defaults to false.

Implementation

final bool canClearSelection;