DropdownDatePicker constructor
DropdownDatePicker({
- Key? key,
- TextStyle? textStyle,
- BoxDecoration? boxDecoration,
- InputDecoration? inputDecoration,
- Icon? icon,
- int? startYear,
- int? endYear,
- double width = 12.0,
- ValueChanged<
String?> ? onChangedDay, - ValueChanged<
String?> ? onChangedMonth, - ValueChanged<
String?> ? onChangedYear, - bool isDropdownHideUnderline = false,
- String errorDay = 'Please select day',
- String errorMonth = 'Please select month',
- String errorYear = 'Please select year',
- String hintMonth = 'Month',
- String hintDay = 'Day',
- String hintYear = 'Year',
- TextStyle? hintTextStyle,
- bool isFormValidator = false,
- bool isExpanded = true,
- int? selectedDay,
- int? selectedMonth,
- int? selectedYear,
- String locale = 'en',
- bool showDay = true,
- bool showMonth = true,
- bool showYear = true,
- int monthFlex = 2,
- int dayFlex = 1,
- int yearFlex = 2,
- 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);