laneConfig method

String? laneConfig(
  1. RoadStep step
)
inherited

Implementation

String? laneConfig(RoadStep step) {
  if (step.intersections.isEmpty || step.intersections.first.lanes == null) {
    return null;
  }
  final config = <String>[];
  bool? validity;
  step.intersections.first.lanes?.forEach((lane) {
    if (validity == null || validity != lane.valid) {
      if (lane.valid) {
        config.add('o');
      } else {
        config.add('x');
      }
      validity = lane.valid;
    }
  });
  return config.join();
}