getScrollX method Null safety

Future<int?> getScrollX()

Returns the scrolled left position of the current WebView.

Official Android API: https://developer.android.com/reference/android/view/View#getScrollX()

Official iOS API: https://developer.apple.com/documentation/uikit/uiscrollview/1619404-contentoffset

Implementation

Future<int?> getScrollX() async {
  Map<String, dynamic> args = <String, dynamic>{};
  return await _channel.invokeMethod('getScrollX', args);
}