DependyFactory<T extends Object> typedef
DependyFactory<T extends Object> =
FutureOr<T> Function(DependyResolve dependencies)
Used on DependyProvider to create an instance of given T
.
It provides a DependyResolve to resolve dependsOn
dependencies.
Example
DependyProvider<CalculatorService>(
(dependy) => CalculatorService(dependy<LoggerService>()),
...
)
Implementation
typedef DependyFactory<T extends Object> = FutureOr<T> Function(
DependyResolve dependencies,
);