Change background color of ListTile upon selection in Flutter : <p>I've made a <code>ListView</code> in Flutter, but now I have some <code>ListTiles</code> in this <code>ListView</code> that can be selected. Upon selection, I want the background color to change to a color of my choice. I don't know how to do that.
In <a href="https://docs.flutter.io/flutter/material/ListTileTheme/style.html" rel="noreferrer">the docs</a> they mention that a <code>ListTile</code> has a property <code>style</code>. However, when I try to add that (as in third last line in the code below), this <code>style</code> property gets a squiggly red line underneath and the compiler tells me that <code>The named parameter 'style' isn't defined</code>.</p>

<pre><code>Widget _buildRow(String string){
  return new ListTile(
    title: new Text(string),
    onTap: () =&gt; setState(() =&gt; toggleSelection(string)),
    selected: selectedFriends.contains(string),
    style: new ListTileTheme(selectedColor: Colors.white,),
  );
}
</code></pre>
