title: is there another way to display value from popupmenitem to Textfield
body: <p>am working hard trying to get data from popupmenuitems and display on textfield this is what i have done, assuming that the productTypecontoller will hold the selected item value and show it in the textfield,but it did not do that.</p>
  <pre><code> PopupMenuButton(
        itemBuilder: (BuildContext context) {
          return productType.map((String selectedType) {
            return CheckedPopupMenuItem(
                value: selectedType, child: Text(selectedType));
          }).toList();
        },
        onSelected: (value) {
          setState(() {
           
            productTypeController.text = value.toString();
            print(productTypeController);
          });
        },
        icon: Icon(
          Icons.list,
          color: Colors.black,
        ),
      ),
  </code></pre>