ResignedGameEvent constructor
const
ResignedGameEvent({
- PieceColor? player,
Creates new ResignedGameEvent
with the color of the player. This event
is always broadcasted because subscribers of the broadcast stream must
know that a game has ended and who resigned.
Implementation
const ResignedGameEvent({this.player})
: super(GameEventType.resigned, isBroadcasted: true);