clearSelection method
Removes the identified selection from the list of selections. If the identified selection does not exist, has no effect.
Implementation
CalendarState clearSelection(String? id) => has(id)
? CalendarState(
selections: selections.where((s) => s.id != id).toList(),
currentSelection: currentSelection,
cause: CausedBy.external,
resolution: resolution)
: this;