getProgress method Null safety

Future<int?> getProgress()

Gets the progress for the current page. The progress value is between 0 and 100.

Official Android API: https://developer.android.com/reference/android/webkit/WebView#getProgress()

Official iOS API: https://developer.apple.com/documentation/webkit/wkwebview/1415007-estimatedprogress

Implementation

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