DatePicker constructor

const DatePicker({
  1. Key? key,
  2. int? beginYear,
  3. int? endYear,
  4. bool ascendingYear = true,
  5. required void onChanged(
    1. int year,
    2. int month,
    3. int day
    ),
  6. String labelYear = 'Year',
  7. String labelMonth = 'Month',
  8. String labelDay = 'Day',
  9. ({int? day, int? month, int? year})? initialDate,
})

Implementation

const DatePicker({
  super.key,
  this.beginYear,
  this.endYear,
  this.ascendingYear = true,
  required this.onChanged,
  this.labelYear = 'Year',
  this.labelMonth = 'Month',
  this.labelDay = 'Day',
  this.initialDate,
});