InsanichessChallenge constructor

const InsanichessChallenge({
  1. required InsanichessPlayer? createdBy,
  2. required InsanichessTimeControl timeControl,
  3. required PieceColor? preferColor,
  4. required bool isPrivate,
  5. required ChallengeStatus status,
})

Creates new InsanichessChallenge object with timeControl, challenger's preferColor selection, and whether this game isPrivate or not.

Implementation

const InsanichessChallenge({
  required this.createdBy,
  required this.timeControl,
  required this.preferColor,
  required this.isPrivate,
  required this.status,
});