cancelCurrentPreview method
Ends preview mode, if applicable.
This only changes the preview state. The cause
is still preview
.
Implementation
CalendarState cancelCurrentPreview() => preview == null
? this
: CalendarState(
selections: selections,
currentSelection: currentSelection,
cause: CausedBy.preview,
preview: null,
previewAnchoredAtStart: previewAnchoredAtStart,
resolution: resolution);