| 1 | enum BootstrapStage { |
| 2 | initializing, |
| 3 | preparingApp, |
| 4 | initializingServices, |
| 5 | configuringServer, |
| 6 | done, |
| 7 | error, |
| 8 | } |
| 9 | |
| 10 | class BootstrapState { |
| 11 | final BootstrapStage stage; |
| 12 | final String statusMessage; |
| 13 | final Object? error; |
| 14 | final double progress; |
| 15 | |
| 16 | const BootstrapState({ |
| 17 | this.stage = BootstrapStage.initializing, |
| 18 | this.statusMessage = 'Initializing...', |
| 19 | this.error, |
| 20 | this.progress = 0.0, |
| 21 | }); |
| 22 | } |