I have a list of several points of service in a List.
Within the PointsOfServices there is another object named Orders. How do i go about getting access to the Orders object to use it’s data alongside the PointsOfService data?
Thanks
Edit: I want to be able to use this data to produce a GridView that will enable me to display both data from PointOfServices and Orders.
Will i be able to use a Future for this and FutureBuilder when creating the GridView?
2
Answers
You can directly access it using the index
Will print the first pointOfService’s first order’s Id
Note: here mainList is the name of the list that contains all pointOfService and i assumed that you have id in each order
Your question isn’t clear as of what you want to exactly achieve, but to access
list
insidelist
, you can refer this ,This will output
Edit
For
GridView
you can do something like: