setPreference<T> method

Future<void> setPreference<T>(
  1. {required String key,
  2. 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);
}