BadCertificateCallback 类型定义

BadCertificateCallback = bool Function(X509Certificate cr, String host, int port

实现

typedef BadCertificateCallback = bool Function(
    X509Certificate cr, String host, int port);