title: Flutter Listview.Separated add Separator at beginning and end of list
body: <p>Using flutter, what is the easiest and cleanest way to place a separator not only between the rows, but also as the first and last row ?</p>
  
  <p>I am able to do so by faking the <code>itemCount</code> and adding to extra rows.</p>
  
  <pre><code>...
  child: ListView.separated(
    // Offset itemCount to start with separator
    itemCount: sortedList.length + 2,
    itemBuilder: (context, index) {
      if (index == 0) {
        return SizedBox(height: 0.0);
      }
      if (index == sortedList.length + 1) {
        return SizedBox(height: 0.0);
      }
      return ListItem(...);
    },
    separatorBuilder: (context, index) {
      return SizedBox(height: 10.0);
    }))),
  </code></pre>