MovePlayedGameEvent constructor
const
MovePlayedGameEvent(
- {required Move move,
- Duration? timeSpent,
- PieceColor? player}
Creates new MovePlayedGameEvent
with move and optional timeSpent for
this move. The server always sets timeSpent but if client sets it, it is
simply ignored by the server.
Implementation
const MovePlayedGameEvent({
required this.move,
this.timeSpent,
this.player,
}) : super(GameEventType.movePlayed, isBroadcasted: true);