update method
Updates the value asynchronously.
Implementation
Future<void> update(T value) async {
await prefs.setString(prefKey, mapTo(value));
super.state = value;
}
Updates the value asynchronously.
Future<void> update(T value) async {
await prefs.setString(prefKey, mapTo(value));
super.state = value;
}