void setTrustedCertificatesBytes(List<int> certBytes, {String password})

Sets the set of trusted X509 certificates used by SecureSocket client connections, when connecting to a secure server.

Like setTrustedCertificates but takes the contents of the file.

Source

void setTrustedCertificatesBytes(List<int> certBytes, {String password});