bootstrapAsync method

Future<void> bootstrapAsync()

An optional callback for asynchronous initialization. If lazy loading is disabled this will be called right when the app starts and displays a loading widget until the async operation is finished.

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

Future<void> bootstrapAsync() async {}