hasLayout property

bool hasLayout

Indicates if this game instance is connected to a GameWidget that is live in the flutter widget tree. Once this is true, the game is ready to have its size used or in the case of a FlameGame, to receive components.


bool get hasLayout => _size != null;