VoltronArray.copy constructor

VoltronArray.copy(
  1. VoltronArray old
)

Implementation

VoltronArray.copy(VoltronArray old) {
  for (final value in old._data) {
    if (value is VoltronMap) {
      push(VoltronMap.copy(value));
    } else if (value is VoltronArray) {
      push(VoltronArray.copy(value));
    } else {
      push(value);
    }
  }
}