failClosedOf static method
- BuildContext context
Whether the SDK fails closed (disables features) when configuration fails to load.
Implementation
static bool failClosedOf(BuildContext context) {
final scope = context.getInheritedWidgetOfExactType<CupThreadThemeScope>() ??
context.dependOnInheritedWidgetOfExactType<CupThreadThemeScope>();
return scope?.failClosed ?? true;
}