clone method

XtransportCredentials clone({
  1. bool? newIsSecure,
  2. String? newAuthority,
})

Implementation

XtransportCredentials clone({bool? newIsSecure, String? newAuthority}) {
  return XtransportCredentials._(
    newIsSecure ?? isSecure,
    _caCertificateBytes,
    _caCertificatePassword,
    newAuthority ?? authority,
    onBadCertificate,
    _clientCertificateBytes,
    _clientCertificatePassword,
    _clientPrivateKeyBytes,
    _clientPrivateKeyPassword,
  );
}