of static method
Nearest controller; asserts when no PrismSettingsPage is above.
Implementation
static PrismSettingsController of(BuildContext context) {
final scope = context
.dependOnInheritedWidgetOfExactType<PrismSettingsScope>();
assert(scope != null, 'Settings tiles must be inside a PrismSettingsPage.');
return scope!.notifier!;
}