onBadCertificate property

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

Escape hatch for accepting a self-signed certificate.

Implementation

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