title: how to set initial value to dropdown menu in flutter?
body: <p>how to set initial value to dropdown menu in flutter?</p>
  
  <p>In dropdown menu I want to set initial value, currently its showing hint value "Select Language". I need the initial value to show there. Like my initial value is English, that should be the selected item in my Dropdown menu.</p>
  
  <p>below is my code: </p>
  
  <pre><code>new DropdownButtonHideUnderline(
  
                 child: new DropdownButton&lt;Language&gt;(
                   hint: new Text("Select Language"),
                   value: selectedLanguage,
                   onChanged: (Language newValue) {
                     applic.onLocaleChanged(new Locale(newValue.languageCode,''));
                     setState(() {
                       selectedLanguage = newValue;
                     });
                   },
                   items: listLanguage.map((Language language) {
                     return new DropdownMenuItem&lt;Language&gt;(
                       value: language,
                       child: new Text(
  
                         language.languageName ,
                         style: new TextStyle(color: Colors.black),
                       ),
                     );
                   }).toList(),
                 ),
               )
  </code></pre>
  
  <p>my list is initialized as: </p>
  
  <pre><code>List&lt;Language&gt; listLanguage =
    &lt;Language&gt; [new Language("English", "en"),
    new Language("French", "fr"),
    new Language("Hindi", "hi"),
  
    ];
  
   Language selectedLanguage;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/pbfXf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/pbfXf.png" alt="enter image description here"></a></p>