dates static method

FCalendarController<Set<DateTime>> dates({
  1. Set<DateTime> initialSelections = const {},
  2. Predicate<DateTime>? selectable,
})

Creates a FCalendarController that allows multiple dates to be selected, with the given initial selected dates.

selectable will always return true if not given.

Contract

Throws AssertionError if the dates in initialSelections are not in UTC timezone.

Implementation

static FCalendarController<Set<DateTime>> dates({
  Set<DateTime> initialSelections = const {},
  Predicate<DateTime>? selectable,
}) =>
    _DatesController(initialSelections: initialSelections, selectable: selectable);