Sprite constructor

Sprite({
  1. required Rect texture,
  2. required double x,
  3. required double y,
  4. double originX = 0.5,
  5. double originY = 0.5,
  6. int opacity = 255,
  7. double scale = 1.0,
  8. double rotation = 0,
  9. bool flip = false,
  10. Color tint = Colors.white,
})

Implementation

Sprite({
  required this.texture,
  required this.x,
  required this.y,
  this.originX = 0.5,
  this.originY = 0.5,
  this.opacity = 255,
  this.scale = 1.0,
  this.rotation = 0,
  this.flip = false,
  this.tint = Colors.white,
});