dvRunBoot function
Runs the application's boot steps for the entry that started this process: the Flutter app, a web server, a worker or cron process, a command. Steps run in the order given (path order, then declaration order) and each is awaited; a step whose entries leave this entry out is skipped. A process boots once, however many times it is asked.
Implementation
Future<void> dvRunBoot(List<DVBootStep> steps, DVBoot boot) async {
if (_booted) return;
_booted = true;
final DVEntryKind kind = boot.entry.kind;
for (final DVBootStep step in steps) {
if (step.entries.isEmpty || step.entries.contains(kind)) {
await step.run(boot);
}
}
}