Dart: how to get all stations with their details loaded?
I have a Flutter app with a repository that has these methods: Future<List<Station>> getAllStations(); Future<Station> getStationDetail(String id); The problem is that getAllStations() returns the base station list, but the incident reports are not always loaded. For some features, I need a list where every station already includes its full details, including its reports. What is the simplest way to create a getAllDetailedStations() method in the repository?
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.