MonthlyCalendar constructor

MonthlyCalendar({
  1. required DateTime month,
  2. DateTime? selectedDate,
  3. DateTime? today,
  4. int firstDayOfWeek = DateTime.monday,
  5. bool showAdjacentMonths = false,
  6. Map<DateTime, String> markers = const {},
  7. Style? headerStyle,
  8. Style? weekdayStyle,
  9. Style? dayStyle,
  10. Style? outsideStyle,
  11. Style? todayStyle,
  12. Style? selectedStyle,
  13. Color? markerColor,
  14. Key? key,
})

Creates a month calendar containing month.

Implementation

MonthlyCalendar({
  required this.month,
  this.selectedDate,
  this.today,
  this.firstDayOfWeek = DateTime.monday,
  this.showAdjacentMonths = false,
  this.markers = const {},
  this.headerStyle,
  this.weekdayStyle,
  this.dayStyle,
  this.outsideStyle,
  this.todayStyle,
  this.selectedStyle,
  this.markerColor,
  super.key,
}) : assert(firstDayOfWeek >= DateTime.monday),
     assert(firstDayOfWeek <= DateTime.sunday);