setPreference<T> method
- {required String key,
- required T value}
Set the preference value
for a certain parameter key
for this source.
Implementation
Future<void> setPreference<T>({required String key, required T value}) async {
await _preferences.put(key, value);
}