copyWith method

CameraBehaviourChange copyWith({
  1. CameraBehaviour? newBehaviour,
  2. CameraBehaviourChangeReason? changeReason,
})

Implementation

CameraBehaviourChange copyWith({
  CameraBehaviour? newBehaviour,
  CameraBehaviourChangeReason? changeReason
}) {
  return CameraBehaviourChange(
    newBehaviour: newBehaviour ?? this.newBehaviour,
    changeReason: changeReason ?? this.changeReason
  );
}