getItem 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 getItem({
  1. required String key,
})

When passed a key name, will return that key's value, or null if the key does not exist, in the given 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<dynamic> getItem({required String key}) {
  throw UnimplementedError(
    'getItem is not implemented on the current platform',
  );
}