copyWith method

RouteSearchPoint copyWith({
  1. GeoPoint? coordinates,
  2. Optional<Bearing?>? course,
  3. DgisObjectId? objectId,
  4. Optional<LevelId?>? levelId,
})

Implementation

RouteSearchPoint copyWith({
  GeoPoint? coordinates,
  Optional<Bearing?>? course,
  DgisObjectId? objectId,
  Optional<LevelId?>? levelId
}) {
  return RouteSearchPoint(
    coordinates: coordinates ?? this.coordinates,
    course: course != null ? course.value : this.course,
    objectId: objectId ?? this.objectId,
    levelId: levelId != null ? levelId.value : this.levelId
  );
}