GameDecoration.withSprite constructor
GameDecoration.withSprite({})
Implementation
GameDecoration.withSprite({
required FutureOr<Sprite> sprite,
required Vector2 position,
required Vector2 size,
}) {
loader?.add(AssetToLoad(sprite, (value) => this.sprite = value));
applyBleedingPixel(position: position, size: size);
}