setString method

  1. @override
Future<bool> setString(
  1. String key,
  2. String? value
)
override

Implementation

@override
Future<bool> setString(String key, String? value) async {
  final map = await read();
  map[key] = value;
  return await write(WriteData(map: map, updatedKey: key));
}