title: how to make value on dropDownButton updated flutter ,
body: <p>this my code . so if i don't have an option saved in my interface i choose the one then i click on button save to saved then i enter again on this interface i find it that option selected but i can modify it just i select again the option i want the click on button save .
  In my case i save the option with getX storage and it's saved with success  but when i want to select again and modify the option i can't . in my code the <code>value</code> normally take the value on the database and if it did not find it it take the value selected. Is there attribute  that make a default value and it can be modified ?</p>
  <pre><code> child: DropdownButton&lt;String&gt;(
                        icon: const Icon(Icons.keyboard_arrow_down),
                        isExpanded: true,
                        style: const TextStyle(
                          color: Colors.black,
                          fontSize: 17,
                          fontFamily: 'SFProRegular',
                        ),
                        underline: Container(
                          height: 1,
                          color: Colors.black,
                        ),
                        onChanged: (String? newValue) {
                          setState(() {
                            dropDownValue = newValue;
                          });
                        },
                        items: &lt;String&gt;[
                          &quot;option1&quot;,
                          &quot;option 2&quot;,
                        ].map&lt;DropdownMenuItem&lt;String&gt;&gt;((String value) {
                          return DropdownMenuItem&lt;String&gt;(
                            value: value,
                            child: Text(value),
                          );
                        }).toList(),
                        value: box.read(&quot;optioSaved&quot;) ?? dropDownValue,
                        hint: const Text(&quot;choose&quot;),
                      ),
  </code></pre>