clear method
Clears all keys stored in a given Storage object.
NOTE for Web: this method will have effect only if the iframe has the same origin.
Officially Supported Platforms/Implementations:
- Android native WebView
- iOS
- MacOS
- Web
Implementation
@override
Future<void> clear() async {
await controller?.evaluateJavascript(source: """
window.$webStorageType.clear();
""");
}