Tile constructor

Tile(
  1. int x,
  2. int y, {
  3. bool obstacle = false,
})

Implementation

Tile(this.x, this.y, {this.obstacle = false})
    : _hashcode = '$x,$y'.hashCode,
      _str = '[X:$x, Y:$y, Obs:$obstacle]';