copyWith method

Face3D copyWith({
  1. Triangle? triangle,
  2. Color? color,
})

Copies the face.

Implementation

Face3D copyWith({
  Triangle? triangle,
  Color? color,
}) {
  return Face3D(triangle ?? this.triangle, color: color ?? this.color);
}