GameHistory.withMoves constructor
GameHistory.withMoves({
- required List<
PlayedMove> moves, - 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>[];