of static method

R of(
  1. BuildContext context,
  2. List<ResourceDelegate> resources
)

Implementation

static R of(BuildContext context, List<ResourceDelegate> resources) {
  final newConfiguration = Configuration.of(context);
  if(newConfiguration == _instance?._configuration) {
    return _instance!;
  }

  _instance = R._(newConfiguration, resources)
    .._init();
  return _instance!;
}