CalendarView.now constructor

CalendarView.now()

Creates a CalendarView for the current month and year.

Uses DateTime.now() to determine the current date and extracts the year and month components.

Example:

final currentView = CalendarView.now();

Implementation

factory CalendarView.now() {
  DateTime now = DateTime.now();
  return CalendarView(now.year, now.month);
}