write method
Writes the provided value
for the given key
.
Overwrites any existing value.
Implementation
@override
Future<void> write(String key, String value) async {
if (_needsInit) await _initPrefs();
await _prefs!.setString(key, value);
}