findGame method

  1. @override
FlameGame<World>? findGame()
override

Fetches the nearest FlameGame ancestor to the component.

Implementation

@override
FlameGame? findGame() => _game ?? super.findGame();