DatePickerModel constructor
DatePickerModel({})
Implementation
DatePickerModel({
required this.useYear,
required this.useMonth,
required this.useDay,
required this.useHour,
required this.useMinute,
required this.useWeekDay,
required this.useSecond,
required this.dateStart,
required this.dateEnd,
this.dateInitial
}){
assert(!useWeekDay || (!useSecond && !useMinute && !useHour), 'WeekDay can only used with Year, Month and Day!');
setInitialTime();
setInitialMonthData();
setInitialDayData();
setInitialWeekDayData();
setControllers();
addListener();
}