canScrollHorizontally method

Future<bool> canScrollHorizontally()

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

NOTE for Web: this method will have effect only if the iframe has the same origin.

NOTE for MacOS: it is implemented using JavaScript.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS
  • Web

Implementation

Future<bool> canScrollHorizontally() {
  throw UnimplementedError(
      'canScrollHorizontally is not implemented on the current platform');
}