Tile.fromPoint constructor

Tile.fromPoint({
  1. required Point<int> point,
  2. required int value,
})

Create an instance from the given point.

Implementation

Tile.fromPoint({
  required final Point<int> point,
  required this.value,
})  : x = point.x,
      y = point.y;