Calendar constructor
Calendar({
- Key? key,
- TextStyle? titleStyle,
- Widget? previous,
- Widget? next,
- Color? activeColor,
- Color? backgroundColor,
- TextStyle? selectedStyle,
- TextStyle? textStyleDays,
- TextStyle? textStyleWeekDay,
- ValueChanged<
Date?> ? onSelected, - double? space,
- bool weekendOpacityEnable = false,
- double weekendOpacity = 0.48,
- bool disable = false,
- DateTime? initialDate,
- required bool isCustomized,
- dynamic addOnTap()?,
- Widget? child,
- bool? normalCalendar = false,
Implementation
Calendar({
Key? key,
this.titleStyle,
this.previous,
this.next,
this.activeColor,
this.backgroundColor,
this.selectedStyle,
this.textStyleDays,
this.textStyleWeekDay,
this.onSelected,
this.space,
this.weekendOpacityEnable = false,
this.weekendOpacity = 0.48,
this.disable = false,
this.initialDate,
required this.isCustomized,
this.addOnTap,
this.child,
this.normalCalendar = false,
}) : assert(weekendOpacityEnable == true
? textStyleWeekDay!.color != null
: true),
assert(
weekendOpacityEnable == true ? textStyleDays!.color != null : true),
super(key: key);