of static method
Returns the nearest controller.
Implementation
static DebugConsoleController of(BuildContext context) {
final controller = maybeOf(context);
assert(controller != null, 'No DebugConsoleScope found in the widget tree');
return controller!;
}