sprite property

Sprite? get sprite
inherited

Returns the current sprite rendered by this component.

Implementation

Sprite? get sprite => _sprite;
set sprite (Sprite? value)
inherited

Sets the given sprite as the new sprite of this component. Will update the size if autoResize is set to true.

Implementation

set sprite(Sprite? value) {
  _sprite = value;
  _resizeToSprite();
}