copyWith method

CameraBehaviour copyWith({
  1. Optional<FollowPosition?>? position,
  2. FollowTilt? tilt,
})

Implementation

CameraBehaviour copyWith({
  Optional<FollowPosition?>? position,
  FollowTilt? tilt
}) {
  return CameraBehaviour(
    position: position != null ? position.value : this.position,
    tilt: tilt ?? this.tilt
  );
}