createFrameData method

SpriteAnimationFrameData createFrameData(
  1. int row,
  2. int column, {
  3. required double stepTime,
})

Create a SpriteAnimationFrameData for the sprite in the position (row, column) on the sprite sheet grid.

Implementation

SpriteAnimationFrameData createFrameData(
  int row,
  int column, {
  required double stepTime,
}) {
  return createFrameDataFromId(row * columns + column, stepTime: stepTime);
}