setLoaded method

  1. @internal
void setLoaded()

Used by the FlameGame to set the loaded state of the component, since the game isn't going through the whole normal component life cycle.

Implementation

@internal
void setLoaded() {
  _setLoadedBit();
  _loadCompleter?.complete();
  _loadCompleter = null;
}