memorySizeWith method
Estimates memory usage with an instance of MemoryCounter.
Implementation
@override
void memorySizeWith(MemoryCounter counter, Map<K, V> instance) {
counter.add(32);
for (var entry in instance.entries) {
counter.add(16);
counter.addObject(entry.key, kind: keyKind);
counter.addObject(entry.value, kind: valueKind);
}
}