of static method
Implementation
static R of(BuildContext context) {
final data = context.dependOnInheritedWidgetOfExactType<ResourcesData>();
if(data == null) {
throw Exception('Failed to depend on top widget. Please put ResourcesData widget on top.');
}
return R.of(context, data.delegates);
}