copyWith method
HandshakeState
copyWith(
{ - Uint8List? chainKey,
- Uint8List? handshakeHash,
- XXHandshakeState? state,
- SecretKey? cipherKey,
- bool clearCipherKey = false,
- int? cipherNonce,
- SecretKey? sendKey,
- SecretKey? recvKey,
- Uint8List? remoteEphemeralKey,
- Uint8List? remoteStaticKey,
})
Implementation
HandshakeState copyWith({
Uint8List? chainKey,
Uint8List? handshakeHash,
XXHandshakeState? state,
SecretKey? cipherKey,
bool clearCipherKey = false,
int? cipherNonce,
SecretKey? sendKey,
SecretKey? recvKey,
Uint8List? remoteEphemeralKey,
Uint8List? remoteStaticKey,
}) {
return HandshakeState(
chainKey: chainKey ?? this.chainKey,
handshakeHash: handshakeHash ?? this.handshakeHash,
state: state ?? this.state,
cipherKey: clearCipherKey ? null : (cipherKey ?? this.cipherKey),
cipherNonce: cipherNonce ?? this.cipherNonce,
sendKey: sendKey ?? this.sendKey,
recvKey: recvKey ?? this.recvKey,
remoteEphemeralKey: remoteEphemeralKey ?? this.remoteEphemeralKey,
remoteStaticKey: remoteStaticKey ?? this.remoteStaticKey,
);
}