DateTimePickerUltraDialog constructor
DateTimePickerUltraDialog({
- Key? key,
- bool showDatePicker = true,
- bool showTimePicker = true,
- String title = 'Tap here to open Date Time dropdown',
- Widget? titleWidget,
- dynamic onChangeDate()?,
- dynamic onChangeTime()?,
- dynamic onPress()?,
- Color iconColor = Colors.grey,
- Color color = Colors.orangeAccent,
- Color textColor = Colors.black,
- double borderRadius = 2,
- double textBoxwidth = 60,
- DateTime? selectedDate,
- TimeOfDay? initialTime,
Implementation
DateTimePickerUltraDialog({
super.key,
this.showDatePicker = true,
this.showTimePicker = true,
this.title = 'Tap here to open Date Time dropdown',
this.titleWidget,
this.onChangeDate,
this.onChangeTime,
this.onPress,
this.iconColor = Colors.grey,
this.color = Colors.orangeAccent,
this.textColor = Colors.black,
this.borderRadius = 2,
this.textBoxwidth = 60,
DateTime? selectedDate,
TimeOfDay? initialTime,
}) : selectedDate = selectedDate ?? DateTime.now(),
initialTime = initialTime ?? TimeOfDay.now() {
// Set the default value for initialTime if it's not provided
// This code executes in the constructor body
// This approach ensures the object is fully initialized
}