destinations property

List<String> get destinations

Implementation

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