getTitle method Null safety

Future<String?> getTitle()

Gets the title for the current page.

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

Official iOS API: https://developer.apple.com/documentation/webkit/wkwebview/1415015-title

Implementation

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