failClosedOf static method

bool failClosedOf(
  1. 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;
}