ChannelCredentials.secure constructor

const ChannelCredentials.secure({
  1. List<int>? certificates,
  2. String? password,
  3. String? authority,
  4. BadCertificateHandler? onBadCertificate,
})

Enable TLS and optionally specify the certificates to trust. If certificates is not provided, the default trust store is used.

Implementation

const ChannelCredentials.secure({
  List<int>? certificates,
  String? password,
  String? authority,
  BadCertificateHandler? onBadCertificate,
}) : this._(true, certificates, password, authority, onBadCertificate);