clear method

Future<void> clear()

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

Future<void> clear() {
  throw UnimplementedError(
      'clear is not implemented on the current platform');
}