getScrollY method Null safety

Future<int?> getScrollY()

Returns the scrolled top position of the current WebView.

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

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

Implementation

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