FlaggedGameEvent constructor
const
FlaggedGameEvent({
- required PieceColor player,
Creates new FlaggedGameEvent 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 ran out of time.
Implementation
const FlaggedGameEvent({required this.player})
: super(GameEventType.flagged, isBroadcasted: true);