copyWith method

RouteLaneSign copyWith({
  1. List<RouteLane>? lanes,
  2. Optional<RoutePoint?>? signStartPoint,
  3. Optional<RoutePoint?>? signPoint,
  4. Optional<RoutePoint?>? signEndPoint,
})

Implementation

RouteLaneSign copyWith({
  List<RouteLane>? lanes,
  Optional<RoutePoint?>? signStartPoint,
  Optional<RoutePoint?>? signPoint,
  Optional<RoutePoint?>? signEndPoint
}) {
  return RouteLaneSign(
    lanes: lanes ?? this.lanes,
    signStartPoint: signStartPoint != null ? signStartPoint.value : this.signStartPoint,
    signPoint: signPoint != null ? signPoint.value : this.signPoint,
    signEndPoint: signEndPoint != null ? signEndPoint.value : this.signEndPoint
  );
}