dimeGet<T> function

T dimeGet<T>(
  1. {String? tag}
)

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