date static method

FCalendarController<DateTime?> date({
  1. DateTime? initialSelection,
  2. Predicate<DateTime>? selectable,
})

Creates a FCalendarController that allows only a single date to be selected, with the given initially selected date.

selectable will always return true if not given.

Contract

Throws AssertionError if initialSelection is not in UTC timezone.

Implementation

static FCalendarController<DateTime?> date({
  DateTime? initialSelection,
  Predicate<DateTime>? selectable,
}) =>
    _DateController(initialSelection: initialSelection, selectable: selectable);