HorizontalView.defaults constructor
HorizontalView.defaults({
- required DateTime selectedMonth,
- required void onUserPicked(),
- bool showWeekDays = true,
- TextStyle? dateTextStyle,
- TextStyle? weekDaysTextStyle,
- TextStyle? selectedDateTextStyle,
- TextStyle? selectedWeekDaysTextStyle,
- DateTime? initialDate,
- DateTime? endDate,
- MCalendarController? controller,
- CalendarAnimations? animations,
Default factory constructor with pre-configured decorations.
Implementation
factory HorizontalView.defaults({
required DateTime selectedMonth,
required void Function(DateTime) onUserPicked,
bool showWeekDays = true,
TextStyle? dateTextStyle,
TextStyle? weekDaysTextStyle,
TextStyle? selectedDateTextStyle,
TextStyle? selectedWeekDaysTextStyle,
DateTime? initialDate,
DateTime? endDate,
MCalendarController? controller,
CalendarAnimations? animations,
}) {
return HorizontalView(
selectedMonth: selectedMonth,
onUserPicked: onUserPicked,
showWeekDays: showWeekDays,
dateTextStyle: dateTextStyle,
weekDaysTextStyle: weekDaysTextStyle,
selectedDateTextStyle: selectedDateTextStyle,
selectedWeekDaysTextStyle: selectedWeekDaysTextStyle,
initialDate: initialDate,
endDate: endDate,
controller: controller,
animations: animations,
);
}