removeItem method

Future<void> removeItem({
  1. required String key,
})

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.

Officially Supported Platforms/Implementations:

  • Android native WebView
  • iOS
  • MacOS
  • Web

Implementation

Future<void> removeItem({required String key}) {
  throw UnimplementedError(
      'removeItem is not implemented on the current platform');
}