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