Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing RoadSteps #21

Open
golkhandani opened this issue Nov 9, 2023 · 3 comments
Open

Missing RoadSteps #21

golkhandani opened this issue Nov 9, 2023 · 3 comments
Assignees

Comments

@golkhandani
Copy link

golkhandani commented Nov 9, 2023

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
Copy link
Owner

liodali commented Nov 10, 2023

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

@liodali liodali self-assigned this Nov 10, 2023
liodali added a commit that referenced this issue Nov 11, 2023
@liodali
Copy link
Owner

liodali commented Nov 11, 2023

check our latest version : 0.5.3

@golkhandani
Copy link
Author

@liodali Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants