badCertificateCallback property

ValidateCertificate? badCertificateCallback
final

Sets a callback that will decide whether to accept a secure connection with a server certificate that cannot be authenticated by any of our trusted root certificates. badCertificateCallback: (cert, String host, int port) { return true; },

Implementation

final ValidateCertificate? badCertificateCallback;