getTitle method
{@template tmpflutter_webview_platform_interface.PlatformInAppWebViewController.getTitle} 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 @{endtemplate}
Implementation
@override
Future<String?> getTitle() async {
Map<String, dynamic> args = <String, dynamic>{};
return await channel?.invokeMethod<String?>('getTitle', args);
}