destinations property

List<String> destinations

Implementation

List<String> get destinations => _roadLegs
    .expand((legs) => legs)
    .map((roadLeg) => roadLeg.destinations)
    .where((element) => element != null)
    .whereType<String>()
    .toList();