DatePicker constructor

const DatePicker({
  1. Key? key,
  2. required DateTime? initialDateTime,
  3. int minuteInterval = 1,
  4. DateTime? maxDateTime,
  5. DateTime? minDateTime,
  6. required CupertinoDatePickerMode mode,
  7. required dynamic onDateChanged(
    1. DateTime
    ),
  8. bool use24hFormat = true,
  9. required TextStyle textStyle,
  10. DatePickerDateOrder? dateOrder,
})

Implementation

const DatePicker({
  Key? key,
  required this.initialDateTime,
  this.minuteInterval = 1,
  this.maxDateTime,
  this.minDateTime,
  required this.mode,
  required this.onDateChanged,
  this.use24hFormat = true,
  required this.textStyle,
  this.dateOrder,
}) : super(key: key);