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