copyWith method

FreeCameraOptions copyWith({
  1. Vec3? position,
  2. Quaternion? orientation,
})

A copy of this value with the given members replaced.

Implementation

FreeCameraOptions copyWith({Vec3? position, Quaternion? orientation}) =>
    FreeCameraOptions(
      position: position ?? this.position,
      orientation: orientation ?? this.orientation,
    );