MonthView<T> constructor

const MonthView<T>({
  1. Key? key,
  2. bool showBorder = true,
  3. Color borderColor = Constants.defaultBorderColor,
  4. CellBuilder<T>? cellBuilder,
  5. DateTime? minMonth,
  6. DateTime? maxMonth,
  7. EventController<T>? controller,
  8. DateTime? initialMonth,
  9. double borderSize = 1,
  10. double cellAspectRatio = 0.55,
  11. DateWidgetBuilder? headerBuilder,
  12. WeekDayBuilder? weekDayBuilder,
  13. Duration pageTransitionDuration = const Duration(milliseconds: 300),
  14. Curve pageTransitionCurve = Curves.ease,
  15. double? width,
  16. CalendarPageChangeCallBack? onPageChange,
  17. CellTapCallback<T>? onCellTap,
  18. TileTapCallback<T>? onEventTap,
  19. DatePressCallback? onDateLongPress,
})

Main Widget to display month view.

Implementation

const MonthView({
  Key? key,
  this.showBorder = true,
  this.borderColor = Constants.defaultBorderColor,
  this.cellBuilder,
  this.minMonth,
  this.maxMonth,
  this.controller,
  this.initialMonth,
  this.borderSize = 1,
  this.cellAspectRatio = 0.55,
  this.headerBuilder,
  this.weekDayBuilder,
  this.pageTransitionDuration = const Duration(milliseconds: 300),
  this.pageTransitionCurve = Curves.ease,
  this.width,
  this.onPageChange,
  this.onCellTap,
  this.onEventTap,
  this.onDateLongPress,
}) : super(key: key);