onBadCertificate property

bool Function(X509Certificate certificate)? onBadCertificate
final

A callback for handling invalid certificates in secure connections.

If provided, this function is invoked when a bad certificate is encountered.

Implementation

final bool Function(X509Certificate certificate)? onBadCertificate;