show method

Future<void> show(
  1. FlameGame<World> game
)

Displays the modal by adding it to the game's viewport. Calls onAfterLoadStatic after loading.

Implementation

Future<void> show(FlameGame game) async {
  await game.camera.viewport.add(this);
  onAfterLoadStatic?.call(this);
}