I would like to know how to get the key value from a dropdownmenuitem placed on a navbar.
I have tried to get from onselect and onchange events of the template class, but it didn´t work.
According to the snapshot attached I am trying to retrieve the values from 'action-1' and 'action-2'.
I have attached a ZIP file with a snapshot which value I am trying to retrieve and example classes.
Thanks.