getSize method
Gets the current size in pixels of the WebView.
Note that if the PlatformHeadlessInAppWebView is not running, this method will return null.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Web <iframe>
- Linux WPE WebKit
Use the PlatformHeadlessInAppWebView.isMethodSupported method to check if this method is supported at runtime.
Implementation
Future<Size?> getSize() => platform.getSize();