show method
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);
}
Displays the modal by adding it to the game's viewport. Calls onAfterLoadStatic after loading.
Future<void> show(FlameGame game) async {
await game.camera.viewport.add(this);
onAfterLoadStatic?.call(this);
}