initialDateTime property

DateTime? initialDateTime
final

you can set initial date time from screen, so if time picker sheet opened will be directly selected the time based on initialDateTime. but this is optional, if initialDateTime not set the selected time will be 0 because using _defaultDateTime.

Implementation

final DateTime? initialDateTime;