getContentHeight method
Gets the height of the HTML content.
NOTE for Web: this method will have effect only if the iframe has the same origin.
NOTE for MacOS: it is implemented using JavaScript.
Officially Supported Platforms/Implementations:
- Android native WebView (Official API - WebView.getContentHeight)
- iOS (Official API - UIScrollView.contentSize)
- MacOS
- Web (Official API - Document.documentElement.scrollHeight)
Implementation
Future<int?> getContentHeight() {
throw UnimplementedError(
'getContentHeight is not implemented on the current platform');
}