copyWith method

ObstacleInfo copyWith({
  1. Obstacle? type,
  2. ObstaclePassLimitation? limitation,
})

Implementation

ObstacleInfo copyWith({
  Obstacle? type,
  ObstaclePassLimitation? limitation
}) {
  return ObstacleInfo(
    type: type ?? this.type,
    limitation: limitation ?? this.limitation
  );
}