maybeOf static method
The nearest scope's controller, or null when the recorder is
disabled or no scope is mounted.
Implementation
static CockpitRecorderController? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<CockpitRecorderScope>()
?.controller;
}