DatePickerUltra constructor

DatePickerUltra({
  1. Key? key,
  2. required dynamic onChange(
    1. DateTime
    ),
  3. Color iconColor = Colors.grey,
  4. Color color = Colors.orangeAccent,
  5. DateTime? selectedDate,
})

Implementation

DatePickerUltra({
  super.key,
  required this.onChange,
  this.iconColor = Colors.grey,
  this.color = Colors.orangeAccent,
  DateTime? selectedDate,
}) : selectedDate = selectedDate ?? DateTime.now();