DropdownDatePicker constructor

DropdownDatePicker({
  1. Key? key,
  2. TextStyle? textStyle,
  3. BoxDecoration? boxDecoration,
  4. InputDecoration? inputDecoration,
  5. Icon? icon,
  6. int? startYear,
  7. int? endYear,
  8. double width = 12.0,
  9. ValueChanged<String?>? onChangedDay,
  10. ValueChanged<String?>? onChangedMonth,
  11. ValueChanged<String?>? onChangedYear,
  12. bool isDropdownHideUnderline = false,
  13. String errorDay = 'Please select day',
  14. String errorMonth = 'Please select month',
  15. String errorYear = 'Please select year',
  16. String hintMonth = 'Month',
  17. String hintDay = 'Day',
  18. String hintYear = 'Year',
  19. TextStyle? hintTextStyle,
  20. bool isFormValidator = false,
  21. bool isExpanded = true,
  22. int? selectedDay,
  23. int? selectedMonth,
  24. int? selectedYear,
  25. String locale = 'en',
  26. bool showDay = true,
  27. bool showMonth = true,
  28. bool showYear = true,
  29. int monthFlex = 2,
  30. int dayFlex = 1,
  31. int yearFlex = 2,
  32. OrderFormat dateformatorder = OrderFormat.MDY,
})

Implementation

DropdownDatePicker(
    {Key? key,
    this.textStyle,
    this.boxDecoration,
    this.inputDecoration,
    this.icon,
    this.startYear,
    this.endYear,
    this.width = 12.0,
    this.onChangedDay,
    this.onChangedMonth,
    this.onChangedYear,
    this.isDropdownHideUnderline = false,
    this.errorDay = 'Please select day',
    this.errorMonth = 'Please select month',
    this.errorYear = 'Please select year',
    this.hintMonth = 'Month',
    this.hintDay = 'Day',
    this.hintYear = 'Year',
    this.hintTextStyle,
    this.isFormValidator = false,
    this.isExpanded = true,
    this.selectedDay,
    this.selectedMonth,
    this.selectedYear,
    this.locale = 'en',
    this.showDay = true,
    this.showMonth = true,
    this.showYear = true,
    this.monthFlex = 2,
    this.dayFlex = 1,
    this.yearFlex = 2,
    this.dateformatorder = OrderFormat.MDY})
    : assert([
        "en",
        "zh_CN",
        "it_IT",
        "de_DE",
        "tr",
        'fr_FR',
        'es_ES',
        'en_abbv',
        'num',
        "pt_BR",
        "ru_RU",
        "ja",
        "ko_KR",
        "ar",
        "nl_NL",
        "pl_PL",
        "th",
      ].contains(locale)),
      super(key: key);