ofOrDefault static method
Retrieves the LiquidGlassSettings from the ancestor tree, falling back to LiquidGlassWidgets.globalSettings or a default instance if none is found.
Implementation
static LiquidGlassSettings ofOrDefault(BuildContext context) {
return of(context) ??
LiquidGlassWidgets.globalSettings ??
const LiquidGlassSettings();
}