GameHistory.withMoves constructor

GameHistory.withMoves({
  1. required List<PlayedMove> moves,
  2. List<PlayedMove>? futureMoves,
})

Constructs new GameHistory object with moves already played and with potential futureMoves.

Implementation

GameHistory.withMoves({required this.moves, List<PlayedMove>? futureMoves})
    : futureMoves = futureMoves ?? <PlayedMove>[];