hasExplicitSettingsOf static method
Returns true when the nearest InheritedLiquidGlass (or renderer layer)
carries explicitly supplied LiquidGlassSettings.
Implementation
static bool hasExplicitSettingsOf(BuildContext context) {
final inherited =
context.dependOnInheritedWidgetOfExactType<InheritedLiquidGlass>();
if (inherited != null) {
return inherited.hasExplicitSettings;
}
try {
LiquidGlassSettings.of(context);
return true;
} catch (_) {
return false;
}
}