key method

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WebPlatform(note: 'This method has an effect only if the iframe has the same origin.'), WindowsPlatform(), LinuxPlatform()])
Future<String> key({
  1. required int index,
})

When passed a number index, returns the name of the nth key in a given Storage object. The order of keys is user-agent defined, so you should not rely on it.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(),
    IOSPlatform(),
    MacOSPlatform(),
    WebPlatform(
      note:
          'This method has an effect only if the iframe has the same origin.',
    ),
    WindowsPlatform(),
    LinuxPlatform(),
  ],
)
Future<String> key({required int index}) {
  throw UnimplementedError('key is not implemented on the current platform');
}