onReady method
void
onReady()
Added on v2.0.0
A callback that gets executed when all non-lazy controllers' bootstrap method gets called.
Execution Order:
When the app runs, this is how Momentum execute all callbacks:
- Momentum root -
initializer()
(awaited) - Initialize all Services
- All Controllers -
T init()
- All non-lazy Controllers -
bootstrap()
- All non-lazy Controllers -
bootstrapAsync()
(awaited) - All Controllers -
onReady()
Implementation
void onReady() {}