StartupOrchestrator class

Runs registered StartupTask instances in StartupPhase order.

Tasks are grouped by their StartupTask.phase value and executed sequentially within each phase. Progress is reported via the execute callback after each task completes.

A JailbreakAppException is re-thrown immediately without logging — the caller (StartupCubit) handles it as a terminal condition. All other task failures are logged and then re-thrown, which causes startup to fail.

Constructors

StartupOrchestrator({required List<StartupTask> tasks, required AppLogger logger})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tasks List<StartupTask>
An unmodifiable view of the registered tasks.
no setter

Methods

execute({required void onProgress(int completed, int total, String label), void onSubProgress(double globalFraction)?}) Future<void>
Executes all tasks in phase order, invoking onProgress before each one and once more with label 'startup.ready' when all tasks finish.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited