canScrollVertically method

Future<bool> canScrollVertically()

Returns true if the webpage can scroll vertically, otherwise false.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • Linux WPE WebKit:
    • This method is implemented using JavaScript.
  • macOS WKWebView:
    • This method is implemented using JavaScript.
  • Web <iframe> but requires same origin

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<bool> canScrollVertically() => platform.canScrollVertically();