copyWith method

CameraProgressInfo copyWith({
  1. RouteCamera? camera,
  2. RoutePoint? position,
  3. double? progress,
})

Implementation

CameraProgressInfo copyWith({
  RouteCamera? camera,
  RoutePoint? position,
  double? progress
}) {
  return CameraProgressInfo(
    camera: camera ?? this.camera,
    position: position ?? this.position,
    progress: progress ?? this.progress
  );
}