clearHistory method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(apiName: 'WebView.clearHistory', apiUrl: 'https://developer.android.com/reference/android/webkit/WebView#clearHistory()')])
Clears the internal back/forward list.
Officially Supported Platforms/Implementations:
- Android WebView (Official API - WebView.clearHistory)
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(
apiName: 'WebView.clearHistory',
apiUrl:
'https://developer.android.com/reference/android/webkit/WebView#clearHistory()',
),
],
)
Future<void> clearHistory() {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.clearHistory.name} is not implemented on the current platform',
);
}