getDependency<T> method
Gets dependency by type T
.
Implementation
@Deprecated('Use .get instead.')
T getDependency<T>() {
final dep = get<T>();
if (dep != null) {
return dep;
}
throw StateError('The $T dependency could not be found');
}