setItem method
- @override
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WebPlatform(), WindowsPlatform(), LinuxPlatform()])
- required String key,
- 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);