RasterSpriteComponent constructor

RasterSpriteComponent({
  1. required Sprite baseSprite,
  2. Images? images,
  3. bool? autoResize,
  4. Paint? paint,
  5. Vector2? position,
  6. Vector2? size,
  7. Vector2? scale,
  8. double? angle,
  9. double nativeAngle = 0,
  10. Anchor? anchor,
  11. Iterable<Component>? children,
  12. int? priority,
  13. double? bleed,
  14. ComponentKey? key,
})

A RasterSpriteComponent is a SpriteComponent that will rasterize its sprite when loaded and will automatically manage the disposal of the rasterized image when removed.

Implementation

RasterSpriteComponent({
  required this.baseSprite,
  this.images,
  super.autoResize,
  super.paint,
  super.position,
  super.size,
  super.scale,
  super.angle,
  super.nativeAngle,
  super.anchor,
  super.children,
  super.priority,
  super.bleed,
  super.key,
});