dimeGet<T> function
Fetches a value and returns based on T
type
and optional instance identifier tag
.
Implementation
T dimeGet<T>({String? tag}) {
var instance = _rootScope.get<T>(tag: tag);
if (instance == null) {
throw DimeException.factoryNotFound(type: T);
} else {
return instance;
}
}