copyFrom method Null safety

void copyFrom(
  1. Sphere other
)

Copy the sphere from other into this.

Implementation

void copyFrom(Sphere other) {
  _center.setFrom(other._center);
  radius = other.radius;
}