getValueWithKey<E> method
Get a saved value using given Key
.
if value does not exist returns null
.
Implementation
E? getValueWithKey<E>(String key) {
final value = _preferences!.get(key);
_logger.d("SharedPreferences: [Reading data] -> key: $key, value: $value");
if (value == null) return null;
if (value is E) return value as E;
throw TypeDoesNotMatch();
}