CalendarState.selected constructor
CalendarState.selected(
- List<
CalendarSelection> selections, { - dynamic resolution = CalendarResolution.days,
- 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);