laneConfig method
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();
}