You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 6, 2017. It is now read-only.
Injector.get(Type) and .getByKey(Key) will throw an exception if the key is not bound. If the component depends on many optional configuration item, wrapping these calls into try-catch blocks is about 50-60x slower than just returning a null value or calling a fallback function.
Please add support for having optional dependencies e.g. by following the num.parse() or the Iterable.firstWhere() method signature for fallbacks.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Injector.get(Type) and .getByKey(Key) will throw an exception if the key is not bound. If the component depends on many optional configuration item, wrapping these calls into try-catch blocks is about 50-60x slower than just returning a null value or calling a fallback function.
Please add support for having optional dependencies e.g. by following the num.parse() or the Iterable.firstWhere() method signature for fallbacks.
The text was updated successfully, but these errors were encountered: