image method

SpriteImage image({
  1. int? row,
  2. int? column,
})

One frame of the grid, drawn still.

For grids that hold art rather than animations, such as a tile map.

Implementation

SpriteImage image({
  int? row,
  int? column,
}) {
  row ??= 0;
  column ??= 0;

  return SpriteImage.of(
    SpriteRegion(
      asset,
      cell,
      row: row,
      start: column,
      end: column + 1,
    ),
  );
}