find<T> static method
Find a dependency in root scope (throws if not found)
Implementation
static T find<T>({String? tag}) {
final result = rootScope.find<T>(tag: tag);
if (result == null) {
throw ZenDependencyNotFoundException(
typeName: T.toString(),
scopeName: 'RootScope',
tag: tag,
);
}
return result;
}