retrieveName method

String retrieveName(
  1. RoadStep step
)
inherited

Implementation

String retrieveName(RoadStep step) {
  final refN = step.ref?.split(';').first;
  var n = step.name;
  if (refN != null && refN == n) {
    n = '';
  }
  if (n.isNotEmpty && refN != null) {
    return '${step.name} ($refN)';
  }
  return n;
}