length method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WebPlatform(note: 'This method has an effect only if the iframe has the same origin.'), WindowsPlatform(), LinuxPlatform()])
Returns an integer representing the number of data items stored in the Storage object.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(),
IOSPlatform(),
MacOSPlatform(),
WebPlatform(
note:
'This method has an effect only if the iframe has the same origin.',
),
WindowsPlatform(),
LinuxPlatform(),
],
)
Future<int?> length() {
throw UnimplementedError(
'length is not implemented on the current platform',
);
}