maybeOf static method
Retrieves the nearest ambient GlassSurfaceStyle, or null if none is present.
Implementation
static GlassSurfaceStyle? maybeOf(BuildContext context) {
return context
.dependOnInheritedWidgetOfExactType<InheritedGlassSurfaceStyle>()
?.surfaceStyle;
}