copyWith method

HandshakeState copyWith({
  1. Uint8List? chainKey,
  2. Uint8List? handshakeHash,
  3. XXHandshakeState? state,
  4. SecretKey? sendKey,
  5. SecretKey? recvKey,
  6. Uint8List? remoteEphemeralKey,
  7. 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,
  );
}