setItem method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WebPlatform(note: 'This method has an effect only if the iframe has the same origin.'), WindowsPlatform(), LinuxPlatform()])
- required String key,
- required dynamic value,
When passed a key name and value, will add that key to the storage, or update that key's value if it already exists.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(),
IOSPlatform(),
MacOSPlatform(),
WebPlatform(
note:
'This method has an effect only if the iframe has the same origin.',
),
WindowsPlatform(),
LinuxPlatform(),
],
)
Future<void> setItem({required String key, required dynamic value}) {
throw UnimplementedError(
'setItem is not implemented on the current platform',
);
}