maybeOf static method
Returns the nearest controller, if any.
Implementation
static DebugConsoleController? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<DebugConsoleScope>()
?.controller;
}
Returns the nearest controller, if any.
static DebugConsoleController? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<DebugConsoleScope>()
?.controller;
}