Animation constructor

Animation({
  1. required String name,
  2. int? frameCount,
  3. double? frameDuration,
  4. required int frameWidth,
  5. required int frameHeight,
  6. int startRow = 0,
  7. int? maxColumns,
  8. bool loop = true,
  9. String? sheetKey,
  10. String? nextAnimation,
  11. int paddingX = 0,
  12. int paddingY = 0,
  13. int offsetX = 0,
  14. int offsetY = 0,
})

Implementation

Animation({
  required this.name,
  this.frameCount,
  this.frameDuration,
  required this.frameWidth,
  required this.frameHeight,
  this.startRow = 0,
  this.maxColumns,
  this.loop = true,
  this.sheetKey,
  this.nextAnimation,
  this.paddingX = 0,
  this.paddingY = 0,
  this.offsetX = 0,
  this.offsetY = 0,
});