How do you pass/bind a value through a RaisedButton in Flutter? : <p>I have a ListView of RaisedButtons, where each RaisedButton looks like this. The <code>name</code> variable is different for each RaisedButton:</p>

<pre><code>  new RaisedButton(
      onPressed: _navigateToRoute,
      child: new Text(name),
  ),
</code></pre>

<p>Tapping on a RaisedButton calls _navigateToRoute(): </p>

<pre><code>  void _navigateToRoute() {
    Navigator.of(context).push(new MaterialPageRoute&lt;Null&gt;(
      builder: (BuildContext context) {
        return new Scaffold(
          body: new Text('A value with the word "Hello" should go here'),
        );
      },
    ));
  }
</code></pre>

<p>When a specific RaisedButton is tapped (e.g. let's say we tap the first RaisedButton in the ListView, where <code>name = 'Hello'</code>), I would like to pass the <code>name</code> variable to the new route. How do I do that? Is there a way to store <code>name</code> in the <code>context</code> variable? Should I use another widget instead of RaisedButton?</p>

<p>I could use a <a href="https://docs.flutter.io/flutter/widgets/Navigator-class.html" rel="noreferrer">Named Navigator Route</a> but I don't want to hardcode a route for each item in my ListView.</p>

<p>I found <a href="https://github.com/flutter/flutter/issues/7877" rel="noreferrer">this Github issue</a>, and I'm not sure if it's the same thing I'm encountering.</p>
