of static method
Returns the CalendarThemeData from the nearest CalendarTheme ancestor, or the default theme if none is found.
Implementation
static CalendarThemeData of(BuildContext context) {
final theme = context.dependOnInheritedWidgetOfExactType<CalendarTheme>();
return theme?.data ?? const CalendarThemeData();
}