loaded method

bool loaded()

Whether this component has been loaded yet. If not loaded, BaseGame will not try to render it.

Sprite based components can use this to let BaseGame know not to try to render when the Sprite has not been loaded yet. Note that for a more consistent experience, you can pre-load all your assets beforehand with Flame.images.loadAll.

Implementation

bool loaded() => true;