of static method

MinimalGround of(
  1. BuildContext context
)

The ground published at context (MinimalGroundScope), surface when none is.

Implementation

static MinimalGround of(BuildContext context) =>
    context
        .dependOnInheritedWidgetOfExactType<_MinimalGroundMark>()
        ?.ground ??
    surface;