DependenciesInit constructor
DependenciesInit({
- EnvironmentStore? environmentStore,
- required List<
DependenciesProgress< progress,Dependency> >
Implementation
DependenciesInit({
this.environmentStore,
required List<DependenciesProgress> progress,
}) {
for (final progress in progress) {
final stopWatch = Stopwatch()..start();
final dependency = progress(InitializationProgress(
dependencies: dependencies,
environmentStore: environmentStore ?? {},
));
dependencies.addAll({
dependency.runtimeType: dependency,
});
stopWatch.stop();
debugPrint(
'💡 ${dependency.runtimeType}: initialized successfully for ${stopWatch.elapsedMilliseconds} ms');
}
}