printWaypaths static method

String printWaypaths(
  1. Iterable<Waypath> waypaths
)

Implementation

static String printWaypaths(Iterable<Waypath> waypaths) {
  if (waypaths.length <= 20) {
    return "${waypaths.map((toElement) => "${toElement.length}").toList()}";
  }
  return "${waypaths.take(20).map((toElement) => "${toElement.length}").toList()} (${waypaths.length} items)";
}