CalendarState constructor

CalendarState({
  1. List<CalendarSelection>? selections,
  2. String? currentSelection,
  3. CausedBy? cause,
  4. Date? preview,
  5. bool previewAnchoredAtStart = false,
  6. dynamic resolution = CalendarResolution.days,
})

Implementation

CalendarState(
    {List<CalendarSelection>? selections,
    this.currentSelection,
    this.cause,
    this.preview,
    this.previewAnchoredAtStart = false,
    resolution = CalendarResolution.days})
    : selections = _adaptSelections(selections ?? [], resolution),
      resolution = resolution;