onChanged property
Called with the day once every segment holds one, and with null when a segment is cleared.
Null disables it, with no second switch, as Flutter's controls do: it leaves the focus order and a screen reader reads it as disabled.
Implementation
final ValueChanged<DateTime?>? onChanged;