get<T> method

T get<T>()

Implementation

T get<T>() {
  var key = InjectorXBind.getKey(T.toString());
  if (_refs.containsKey(key)) {
    return _refs[key];
  } else {
    print("The injection reference ${T.toString()} is not found");
    throw InjectionNotFound(
        "The injection reference ${T.toString()} is not found");
  }
}