maybeOf static method

ChromeGround? maybeOf(
  1. BuildContext context
)

The nearest published ground, or null when none is.

Implementation

static ChromeGround? maybeOf(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<ChromeGroundScope>()?.ground;