maybeOf static method

THighlightScope? maybeOf(
  1. BuildContext context
)

The nearest scope, or null when the widget is not inside one.

Implementation

static THighlightScope? maybeOf(BuildContext context) => context.dependOnInheritedWidgetOfExactType<THighlightScope>();