getPreference<T> method

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