deepCopy method

Sp3dFragment deepCopy()

Deep copy the object.

Implementation

Sp3dFragment deepCopy() {
  List<Sp3dFace> f = [];
  for (var i in faces) {
    f.add(i.deepCopy());
  }
  return Sp3dFragment(f,
      isParticle: isParticle,
      r: r,
      physics: physics != null ? physics!.deepCopy() : null,
      isTouchable: isTouchable,
      name: name,
      option: option != null ? {...option!} : null);
}