selectedDates property

List<DateTime> get selectedDates

An unmodifiable snapshot of the selection, oldest-first ([start, end] in range mode). [] when detached or empty.

Implementation

List<DateTime> get selectedDates {
  final state = _datePickerState;
  if (state == null) return const <DateTime>[];
  return List<DateTime>.unmodifiable(state._emit(state._selection));
}