updateCurrentPreview method
Updates the preview endpoint and sets cause
to previewing
.
Implementation
CalendarState updateCurrentPreview(Date newPreviewTarget) {
//assert(newPreviewTarget != null);
return CalendarState(
selections: selections,
currentSelection: currentSelection,
cause: CausedBy.preview,
preview: newPreviewTarget,
previewAnchoredAtStart: previewAnchoredAtStart,
resolution: resolution);
}