updateDrag method

CalendarState updateDrag(
  1. Date a,
  2. Date b
)

Updates the "current" selection's endpoints, with "dragging" as the cause (the user is still dragging the current selection).

Implementation

CalendarState updateDrag(Date a, Date b) =>
    setSelection(CalendarSelection.guessOrder(currentSelection!, a, b),
        cause: CausedBy.drag);