maybeOf static method

GlassTheme? maybeOf(
  1. BuildContext context
)

Retrieves the GlassTheme from the widget tree.

Returns null if no GlassTheme ancestor exists.

Implementation

static GlassTheme? maybeOf(BuildContext context) {
  return context.dependOnInheritedWidgetOfExactType<GlassTheme>();
}