getTitle method
Gets the title for the current page.
NOTE for Web: this method will have effect only if the iframe has the same origin.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.getTitle)
- iOS (Official API - WKWebView.title)
- MacOS (Official API - WKWebView.title)
- Web
- Windows (Official API - ICoreWebView2.get_DocumentTitle)
Implementation
@override
Future<String?> getTitle() async {
Map<String, dynamic> args = <String, dynamic>{};
return await channel?.invokeMethod<String?>('getTitle', args);
}