Tile constructor

const Tile(
  1. int width,
  2. int height,
  3. Uint8List? data
)

Creates an immutable representation of a Tile to draw by TileProvider.

Implementation

const Tile(this.width, this.height, this.data);