getZoomScale method
Gets the current zoom scale of the WebView.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView (Official API - UIScrollView.zoomScale)
- Linux WPE WebKit (Official API - webkit_web_view_get_zoom_level)
- Windows WebView2 (Official API - ICoreWebView2Controller.get_ZoomFactor)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<double?> getZoomScale() => platform.getZoomScale();