of static method

PurpiConfig of(
  1. BuildContext context
)

Implementation

static PurpiConfig of(BuildContext context) {
  final scope = context.dependOnInheritedWidgetOfExactType<PurpiScope>();
  return scope?.config ?? const PurpiConfig();
}