setCurrentSelection method

CalendarState setCurrentSelection(
  1. Date a,
  2. Date? b, {
  3. CausedBy cause = CausedBy.rangeConfirm,
  4. bool previewAnchoredAtStart = false,
})

Sets both endpoints of the "current" selection

Implementation

CalendarState setCurrentSelection(Date a, Date? b,
        {CausedBy cause = CausedBy.rangeConfirm,
        bool previewAnchoredAtStart = false}) =>
    setSelection(CalendarSelection.guessOrder(currentSelection, a, b),
        cause: cause, previewAnchoredAtStart: previewAnchoredAtStart);