getOrNull<T> method

T? getOrNull<T>({
  1. Qualifier? qualifier,
  2. ParametersDefinition? parameters,
})

Implementation

T? getOrNull<T>({Qualifier? qualifier, ParametersDefinition? parameters}) {
  try {
    return _get(T, qualifier, parameters);
  } catch (e) {
    return null;
  }
}