Sphere.centerRadius constructor Null safety

Sphere.centerRadius(
  1. Vector3 center,
  2. double radius
)

Create a sphere from a center and a radius.

Implementation

Sphere.centerRadius(Vector3 center, this.radius)
    : _center = Vector3.copy(center);