VoltronMap.copy constructor
VoltronMap.copy(
- VoltronMap? old
Implementation
VoltronMap.copy(VoltronMap? old) {
if (old == null) {
return;
}
for (final entry in old.entrySet()) {
if (entry.value is VoltronMap) {
push(entry.key, VoltronMap.copy(entry.value as VoltronMap));
} else if (entry.value is VoltronArray) {
push(entry.key, VoltronArray.copy(entry.value as VoltronArray));
} else {
push(entry.key, entry.value);
}
}
}