setItem method

  1. @override
  2. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WebPlatform(), WindowsPlatform(), LinuxPlatform()])
Future<void> setItem({
  1. required String key,
  2. required dynamic value,
})
override

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

@override
@SupportedPlatforms(
  platforms: [
    AndroidPlatform(),
    IOSPlatform(),
    MacOSPlatform(),
    WebPlatform(),
    WindowsPlatform(),
    LinuxPlatform(),
  ],
)
Future<void> setItem({required String key, required dynamic value}) =>
    super.setItem(key: key, value: value);