Position constructor

const Position({
  1. required int x,
  2. required int y,
  3. required PositionType positionType,
})

Creates a Position with the given x, y, and positionType.

Implementation

const Position({
  required this.x,
  required this.y,
  required this.positionType,
});