title: How to set the text of the field in flutter_typehead TypeAheadField widget?
body: <p>I'm new to Dart and Flutter and I'm trying to use this module <a href="https://github.com/AbdulRahmanAlHamali/flutter_typeahead" rel="noreferrer">https://github.com/AbdulRahmanAlHamali/flutter_typeahead</a> to make a text field with autocomplete/"type ahead" functionality.</p>
  
  <p>In the example they give, when the user selects one of the suggestions, they route the user to another view, but I don't want to do that. I'd just like to set the value of the input text to whatever the user selected.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>class _MyHomePageState extends State&lt;MyHomePage&gt; {
  
    @override
    Widget build(BuildContext context) {
      return Scaffold(
        appBar: AppBar(
          title: Text(widget.title),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.start,
            children: &lt;Widget&gt;[
              TypeAheadField(
                textFieldConfiguration: TextFieldConfiguration(
                  autofocus: true,
                  style: DefaultTextStyle.of(context).style.copyWith(
                    fontStyle: FontStyle.italic
                  ),
                  decoration: InputDecoration(
                    border: OutlineInputBorder()
                  )
                ),
                suggestionsCallback: (pattern) async {
                  Completer&lt;List&lt;String&gt;&gt; completer = new Completer();
                  completer.complete(&lt;String&gt;["cobalt", "copper"]);
                  return completer.future;
                },
                itemBuilder: (context, suggestion){
                  return ListTile(
                    title: Text(suggestion)
                  );
                },
                onSuggestionSelected: (suggestion) {
                }
              )
            ],
          ),
        )
      );
    }
  }
  </code></pre>
  
  <p>I have no clue what to put inside of the <code>onSuggestionSelected</code>parameter function to achieve what I described.</p>