copyWith method

AuthenticateResult copyWith({
  1. String? challenge,
  2. String? signature,
})

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,
    );