getHtml method
Gets the content html of the page. It first tries to get the content through javascript. If this doesn't work, it tries to get the content reading the file:
- checking if it is an asset (
file:///
) or - downloading it using an
HttpClient
through the WebView's current url.
Returns null
if it was unable to get it.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS
- MacOS
- Web
Implementation
Future<String?> getHtml() => platform.getHtml();