of static method

Implementation

static DebugPanelTheme of(BuildContext context) {
  final provider = context.dependOnInheritedWidgetOfExactType<DebugPanelThemeProvider>();
  return provider?.theme ?? DebugPanelTheme.darkCyan;
}