liodali / OSM-Routing-Client-Dart

flutter package for osrm client api and open source routing service
https://pub.dev/packages/routing_client_dart
MIT License
18 stars 12 forks source link

Missing RoadSteps #21

Open golkhandani opened 1 year ago

golkhandani commented 1 year ago

Hi After updating to version 5 I don't have access to the roadlegs directly from Road class was using it to get all the destinations

List<String> getDestinations(Road road) {
    final destinations = road.roadLegs
        .expand((e) => e)
        .map((e) => e.destinations)
        .whereNotNull()
        .toList();
    return destinations;
  }

Now it is simply not accessible anymore

The getter 'roadLegs' isn't defined for the type 'Road'.
Try importing the library that defines 'roadLegs', correcting the name to the name of an existing getter, or defining a getter or field named 'roadLegs'.dart[undefined_getter](https://dart.dev/diagnostics/undefined_getter)
liodali commented 1 year ago

i will add destination attribute in Road instead of you do call it like that it will publish new version this weekend

liodali commented 1 year ago

check our latest version : 0.5.3

golkhandani commented 9 months ago

@liodali Thank you so much