Sprite constructor

const Sprite({
  1. required ImageProvider<Object> image,
  2. required int frameWidth,
  3. required int frameHeight,
  4. Color? color,
  5. bool flipHorizontally = false,
  6. int frame = 0,
  7. Key? key,
})

Implementation

const Sprite({
  required this.image,
  required this.frameWidth,
  required this.frameHeight,
  this.color,
  this.flipHorizontally = false,
  this.frame = 0,
  super.key,
});