maybeOf static method

TomlViewerConfig? maybeOf(
  1. BuildContext context
)

The nearest TomlViewerConfig, or null if there is no enclosing theme.

Implementation

static TomlViewerConfig? maybeOf(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<TomlViewerTheme>()?.config;