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)
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
Now it is simply not accessible anymore