Calendar constructor

Calendar({
  1. Key? key,
  2. TextStyle? titleStyle,
  3. Widget? previous,
  4. Widget? next,
  5. Color? activeColor,
  6. Color? backgroundColor,
  7. TextStyle? selectedStyle,
  8. TextStyle? textStyleDays,
  9. TextStyle? textStyleWeekDay,
  10. ValueChanged<Date?>? onSelected,
  11. double? space,
  12. bool weekendOpacityEnable = false,
  13. double weekendOpacity = 0.48,
  14. bool disable = false,
  15. DateTime? initialDate,
})

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,
})  : assert(weekendOpacityEnable == true
          ? textStyleWeekDay!.color != null
          : true),
      assert(
          weekendOpacityEnable == true ? textStyleDays!.color != null : true),
      super(key: key);