updateStatus method

InsanichessChallenge updateStatus(
  1. ChallengeStatus status
)

Copies the object with new status.

Implementation

InsanichessChallenge updateStatus(ChallengeStatus status) {
  return InsanichessChallenge(
    createdBy: createdBy,
    timeControl: timeControl,
    preferColor: preferColor,
    isPrivate: isPrivate,
    status: status,
  );
}