hasLayout property
bool
get
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.
Implementation
bool get hasLayout => _size != null;