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