CalendarState.selected constructor

CalendarState.selected(
  1. List<CalendarSelection> selections, {
  2. dynamic resolution = CalendarResolution.days,
  3. dynamic cause = CausedBy.external,
})

Creates a calendar state initialized with the given selections. The first element in the list is set as the current selection.

Implementation

CalendarState.selected(List<CalendarSelection> selections,
    {resolution = CalendarResolution.days, cause = CausedBy.external})
    : this(
          cause: cause,
          selections: selections,
          currentSelection: selections.first.id,
          resolution: resolution);