title: How to make a divider in Flutter using listTile while using map()?
body: <p>I am creating a listView using a .map(), and I want to put a divider between the lines. I want to use either the Divider() method or listTiles.divideTiles(), but I don't know how to implement it well. I don't know if this isn't possible or if I don't really understand the method(which it may be because I am fairly new to Flutter), but I think my app would look a lot better with the dividers. Here is the build method I want to create them in:</p>
  <pre><code>  Widget build(BuildContext context) {
  return Scaffold(
    appBar: AppBar(title: Text(&quot;Grocery Lists&quot;)),
    drawer: AppDrawer(),
    body: ListView(
      children: groceryListNames.map(
            (data) =&gt; ListTile(
              trailing: const Icon(Icons.arrow_forward_ios),
              title: Text(
                data,
                style: GoogleFonts.biryani(fontSize: 24),
              ),
              onTap: () {
                Navigator.push(
                  context,
                  MaterialPageRoute(
                      builder: (context) =&gt; GroceryListPage(
                            listTitle: &quot;$data Grocery List&quot;,
                          )),
                );
              },
            ),
          )
          .toList(),
    ),
  );
  </code></pre>
  <p>}</p>