copyWith method
HandshakeState
copyWith({
- Uint8List? chainKey,
- Uint8List? handshakeHash,
- XXHandshakeState? state,
- SecretKey? sendKey,
- SecretKey? recvKey,
- Uint8List? remoteEphemeralKey,
- Uint8List? remoteStaticKey,
Implementation
HandshakeState copyWith({
Uint8List? chainKey,
Uint8List? handshakeHash,
XXHandshakeState? state,
SecretKey? sendKey,
SecretKey? recvKey,
Uint8List? remoteEphemeralKey,
Uint8List? remoteStaticKey,
}) {
return HandshakeState(
chainKey: chainKey ?? this.chainKey,
handshakeHash: handshakeHash ?? this.handshakeHash,
state: state ?? this.state,
sendKey: sendKey ?? this.sendKey,
recvKey: recvKey ?? this.recvKey,
remoteEphemeralKey: remoteEphemeralKey ?? this.remoteEphemeralKey,
remoteStaticKey: remoteStaticKey ?? this.remoteStaticKey,
);
}