initialDateTime property Null safety

DateTime initialDateTime

The initial date and/or time of the picker. Defaults to the present date and time and must not be null. The present must conform to the intervals set in minimumDate, maximumDate, minimumYear, and maximumYear.

Changing this value after the initial build will not affect the currently selected date time.


final DateTime initialDateTime;