getSize method

Future<Size?> getSize()

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 native WebView
  • iOS
  • Web
  • MacOS

Implementation

Future<Size?> getSize() => platform.getSize();