of static method
Implementation
static FeaturesInherited of(BuildContext context) {
final widget = context.getInheritedWidgetOfExactType<FeaturesInherited>();
assert(
widget != null,
'The FeaturesInherited widget was not found. '
'Perhaps you forgot to inject it into the widget tree?',
);
return widget!;
}