CalendarApp constructor
CalendarApp({
- Key? key,
- dynamic onSelectedDate()?,
- BoxDecoration? selectedDecoration,
- BoxDecoration? todayDecoration,
- HeaderStyle? headerStyle,
- EnableDateStyle? enableDateStyle,
- DisableDateStyle? disableDateStyle,
- bool enablePredicate()?,
- bool swipeAnimationEnable = false,
- bool showHeader = true,
- required DateTime startDate,
- required DateTime endDate,
Implementation
CalendarApp(
{Key? key,
this.onSelectedDate,
this.selectedDecoration,
this.todayDecoration,
HeaderStyle? headerStyle,
EnableDateStyle? enableDateStyle,
DisableDateStyle? disableDateStyle,
bool Function(DateTime)? enablePredicate,
this.swipeAnimationEnable = false,
this.showHeader = true,
required this.startDate,
required this.endDate})
: enablePredicate = enablePredicate ?? ((date) => true),
headerStyle = headerStyle ?? HeaderStyle.normal(),
disableDateStyle = disableDateStyle ?? DisableDateStyle.defaultTextStyle(),
enableDateStyle = enableDateStyle ?? EnableDateStyle.defaultTextStyle(), // Set a default value if not provided
super(key: key);