setItem method

  1. @override
Future<void> setItem({
  1. required String key,
  2. required String value,
})
override

Implementation

@override
Future<void> setItem({
  required String key,
  required String value,
}) async {
  final SharedPreferences prefs = await _prefs;
  final String storageKey = _getStorageKey(key);
  prefs.setString(storageKey, value);
}