selectedDates property

List<DateTime>? selectedDates
final

Seeds the selection, and adopts the list again whenever its contents change between builds (pass the value received in onSelectionChange back in to drive the picker as a controlled component). null means the picker owns its selection; pass [] to clear it. In SelectionMode.range it holds [start] or [start, end].

Implementation

final List<DateTime>? selectedDates;