length method

Future<int?> length()
override

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() => platform.length();