of<T extends CalendarEvent> static method

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

Implementation

static CalendarEventModalOptions<T> of<T extends CalendarEvent>(
    BuildContext context) {
  final inheritedOptions = context.dependOnInheritedWidgetOfExactType<
      InheritedCalendarEventModalOptions<T>>();
  return inheritedOptions?.options ?? CalendarEventModalOptions<T>();
}