select method

CalendarState select(
  1. String? id, {
  2. bool previewAnchoredAtStart = false,
})

Sets the range with the given ID as the "current selection" -- the range that'll get updated when the user clicks on the calendar.

Implementation

CalendarState select(String? id, {bool previewAnchoredAtStart = false}) =>
    CalendarState(
        selections: selections,
        currentSelection: id,
        cause: CausedBy.external,
        previewAnchoredAtStart: previewAnchoredAtStart,
        resolution: resolution);