of static method

SurfaceLevel of(
  1. BuildContext context
)

Implementation

static SurfaceLevel of(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<_SurfaceLevelScope>()?.level ??
    SurfaceLevel.page;