use24HourFormat property
Whether to use 24-hour format for time display and input.
When true, times are displayed in 24-hour format (00:00-23:59). When false or null, uses the system default format preference.
Implementation
final bool? use24HourFormat;