TimePickerDialog constructor Null safety
- {Key? key,
- required TimeOfDay initialTime,
- String? cancelText,
- String? confirmText,
- String? helpText,
- String? errorInvalidText,
- String? hourLabelText,
- String? minuteLabelText,
- String? restorationId,
- TimePickerEntryMode initialEntryMode = TimePickerEntryMode.dial,
- EntryModeChangeCallback? onEntryModeChanged}
Creates a Material Design time picker.
initialTime must not be null.
Implementation
const TimePickerDialog({
super.key,
required this.initialTime,
this.cancelText,
this.confirmText,
this.helpText,
this.errorInvalidText,
this.hourLabelText,
this.minuteLabelText,
this.restorationId,
this.initialEntryMode = TimePickerEntryMode.dial,
this.onEntryModeChanged,
}) : assert(initialTime != null);