isStopping static method

bool isStopping(
  1. BuildContext context
)

Checks if a GlassStopper in the widget tree is stopping glass effects.

Returns true if glass effects should be stopped based on the nearest ancestor GlassStopper, or true if no GlassStopper is found.

Implementation

static bool isStopping(BuildContext context) =>
    context.pylonOr<_GlassStop>()?.stopping ?? true;