isIsolated static method
Returns true if the given context is inside an active
GlassIsolationScope with isolated: true.
Used by AdaptiveGlass to decide whether to force useOwnLayer: true.
Implementation
static bool isIsolated(BuildContext context) {
final scope =
context.dependOnInheritedWidgetOfExactType<GlassIsolationScope>();
return scope?.isolated ?? false;
}