maybeOf static method

MorphGlassPainter? maybeOf(
  1. BuildContext context
)

The nearest painter above context, or null when none is installed.

Implementation

static MorphGlassPainter? maybeOf(BuildContext context) =>
    context.dependOnInheritedWidgetOfExactType<MorphGlassScope>()?.painter;