SeniorCalendarHeader constructor

SeniorCalendarHeader({
  1. required String headerTitle,
  2. bool? leftButtonActive = true,
  3. VoidCallback? onHeaderTitlePressed,
  4. required VoidCallback onLeftButtonPressed,
  5. required VoidCallback onRightButtonPressed,
  6. bool? rightButtonActive = true,
  7. required bool showHeader,
  8. bool showHeaderButtons = true,
  9. SeniorCalendarStyle? style,
})

Creates the calendar header, with title navigation buttons between the months and month identification. The parameters headerTitle, onLeftButtonPressed, onRightButtonPressed and showHeader are required.

Implementation

SeniorCalendarHeader({
  required this.headerTitle,
  this.leftButtonActive = true,
  this.onHeaderTitlePressed,
  required this.onLeftButtonPressed,
  required this.onRightButtonPressed,
  this.rightButtonActive = true,
  required this.showHeader,
  this.showHeaderButtons = true,
  this.style,
}) : isTitleTouchable = onHeaderTitlePressed != null;