copyWith method
Returns a copy of this RegisterResult with updated fields.
Example:
final updated = oldResult.copyWith(challenge: "newChallenge");
Implementation
RegisterResult copyWith({
String? challenge,
String? publicKey,
String? signature,
}) =>
RegisterResult(
challenge: challenge ?? this.challenge,
publicKey: publicKey ?? this.publicKey,
signature: signature ?? this.signature,
);