Finds all parameters in a function
and injects the dependencies automatically.
resolve((Dependency dep) {
print(dep); // Instance of 'Dependency'
});
Source
dynamic/*=T*/ resolve/*<T>*/(Function/* -> T*/ function);
Finds all parameters in a function
and injects the dependencies automatically.
resolve((Dependency dep) {
print(dep); // Instance of 'Dependency'
});
dynamic/*=T*/ resolve/*<T>*/(Function/* -> T*/ function);