maybeOf static method

DebugConsoleController? maybeOf(
  1. BuildContext context
)

Returns the nearest controller, if any.

Implementation

static DebugConsoleController? maybeOf(BuildContext context) {
  return context
      .dependOnInheritedWidgetOfExactType<DebugConsoleScope>()
      ?.controller;
}