SpriteWidget constructor
const
SpriteWidget({
- required Sprite sprite,
- Anchor anchor = Anchor.topLeft,
- double angle = 0,
- WidgetBuilder? errorBuilder,
- WidgetBuilder? loadingBuilder,
- Paint? paint,
- Key? key,
renders the sprite
as a Widget.
To change the source size and position, see Sprite.new
Implementation
const SpriteWidget({
required Sprite sprite,
this.anchor = Anchor.topLeft,
this.angle = 0,
this.errorBuilder,
this.loadingBuilder,
this.paint,
super.key,
}) : _spriteFuture = sprite;