removeItem method
When passed a key
name, will remove that key from the given Storage object if it exists.
NOTE for Web: this method will have effect only if the iframe has the same origin.
Supported Platforms/Implementations:
- Android native WebView
- iOS
- Web
Implementation
Future<void> removeItem({required String key}) async {
await _controller.evaluateJavascript(source: """
window.$webStorageType.removeItem("$key");
""");
}