isStopping static method
Checks if a GlassStopper in the widget tree is stopping glass effects.
Scans the nearest ancestor via Pylon for the stopping state, returning true if effects should be disabled or if no stopper is found (fallback to safe default). This method is efficient, avoiding full tree traversals, and is used internally by Glass for conditional rendering in performance-sensitive areas like SliverScreen.
Returns: bool indicating if glass should be stopped.
Implementation
static bool isStopping(BuildContext context) =>
context.pylonOr<_GlassStop>()?.stopping ?? true;