getPreference<T> method
- {required String key,
- required T defaultValue}
Get the preference value for a certain parameter key
for this source.
Implementation
T getPreference<T>({required String key, required T defaultValue}) {
return _preferences.get(key, defaultValue: defaultValue) as T;
}