tryGet<T> abstract method
Null safety
- {ParamTransform? transform}
Request an instance by Type that when throwing an
exception returns null.
transform
: Transform a param. This can be used for example
to replace an instance with a mock in tests.
Implementation
T? tryGet<T>({ParamTransform? transform});