allowBadCertificateForHTTPS method

dynamic allowBadCertificateForHTTPS({
  1. HttpOverrides? customOverrides,
})

Call this method to allow bad https certificate and manually verify them. If you trust your API server and it's certificate you can override the HTTPS system check

Implementation

allowBadCertificateForHTTPS({HttpOverrides? customOverrides}) {
  HttpOverrides.global = customOverrides ?? AppHttpOverrides();
}