of<T extends CalendarEvent> static method

CalendarStyle<T> of<T extends CalendarEvent>(
  1. BuildContext context
)

Implementation

static CalendarStyle<T> of<T extends CalendarEvent>(BuildContext context) {
  final inheritedOptions =
      context.dependOnInheritedWidgetOfExactType<InheritedCalendarStyle<T>>();
  return inheritedOptions?.style ?? const CalendarStyle();
}