get method
Gets content for given key
Implementation
Future<dynamic> get(String key) async {
SharedPreferences prefs = await _getSharedPreferences();
if (prefs.containsKey(_withValidSuffix(key))) {
String? validTimeStr = prefs.getString(_withValidSuffix(key));
if (validTimeStr != null &&
DateTime.parse(validTimeStr).isBefore(DateTime.now())) {
prefs.remove(key);
}
}
return await _fetch(key);
}