Copies the cube.
Cube3D copyWith({double? size, Vector3? position, Color? color}) { return Cube3D( size ?? this.size, position ?? this.position, color: color ?? this.color, ); }