maybeOf static method
The nearest TomlViewerConfig, or null if there is no enclosing theme.
Implementation
static TomlViewerConfig? maybeOf(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<TomlViewerTheme>()?.config;
The nearest TomlViewerConfig, or null if there is no enclosing theme.
static TomlViewerConfig? maybeOf(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<TomlViewerTheme>()?.config;