onBadCertificate property

bool Function(X509Certificate cert, String host, int port)? onBadCertificate
final

Escape hatch for certificate pinning / self-signed dev certs.

Implementation

final bool Function(X509Certificate cert, String host, int port)?
onBadCertificate;