destinations property

List<String> get destinations

Implementation

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