getCertificate method
Gets the SSL certificate for the main top-level page or null if there is no certificate (the site is not secure).
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.getCertificate)
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit (Official API - webkit_web_view_get_tls_info)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<SslCertificate?> getCertificate() => platform.getCertificate();