Check out example codes for "listview.separated flutter". It will help you in understanding the concepts better.

Code Example 1

ListView.separated(
  itemCount: 25,
  separatorBuilder: (BuildContext context, int index) => Divider(),
  itemBuilder: (BuildContext context, int index) {
    return ListTile(
      title: Text('item $index'),
    );
  },
)

Learn ReactJs, React Native from akashmittal.com