get method
Gets value for given key if not expired
Implementation
dynamic get(String key) {
if (this._map.containsKey(_withValidSuffix(key))) {
String? validTimeStr = this._map[_withValidSuffix(key)] as String?;
if (validTimeStr != null &&
DateTime.parse(validTimeStr).isBefore(DateTime.now())) {
this._map.remove(key);
}
}
return this._map[key];
}