BadCertificateHandler typedef
BadCertificateHandler =
bool Function(X509Certificate certificate, String host)
Handler for checking certificates that fail validation. If this handler
returns true, the bad certificate is allowed, and the TLS handshake can
continue. If the handler returns false, the TLS handshake fails, and the
connection is aborted.
Implementation
typedef BadCertificateHandler =
bool Function(X509Certificate certificate, String host);