maybeOf static method

QuickRTCController? maybeOf(
  1. BuildContext context
)

Checks if a QuickRTCProvider exists in the widget tree.

Returns the QuickRTCController instance if found, null otherwise.

Implementation

static QuickRTCController? maybeOf(BuildContext context) {
  return context
      .getInheritedWidgetOfExactType<QuickRTCProvider>()
      ?.controller;
}