ready method

Future<void> ready()

A future that completes when the game is fully ready to start.

The GameWidget awaits this future after the game has been loaded and mounted, before the game is shown and the first update tick runs. By default it completes immediately; FlameGame overrides this to wait until the whole initial component tree has been loaded and mounted.

Since this future is awaited on the startup critical path, an override that never completes keeps the game on the loading widget forever.

Implementation

Future<void> ready() async {}