toMap method
A snapshot of every live entry.
Implementation
Map<String, Object> toMap() {
_purgeExpired();
return Map<String, Object>.unmodifiable(<String, Object>{
for (final MapEntry<String, Object> e in _values.entries)
if (!isInternalKey(e.key)) e.key: e.value,
});
}