of static method

R of(
  1. BuildContext context
)

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);
}