length method

Future<int?> length()

Returns an integer representing the number of data items stored in the 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<int?> length() {
  throw UnimplementedError(
      'length is not implemented on the current platform');
}