updateCurrentPreview method

CalendarState updateCurrentPreview(
  1. Date newPreviewTarget
)

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);
}