how to simplify dinamically this PopupMenuButton arrangement in Flutter?

Issue I’m creating a PopupMenuButton in the AppBar() widget. Retrieving the elements in the List, dinamically,to make a PopupMenuButton. final List<String> entries = <String>[‘Choose a category’,’Verbs’,’Nouns’,’Adjectives’,’Adverbs’,’Determiners’,’Prepositions’,’Pronouns’,’Conjunctions’,’Expressions’,’Sentences’ ]; PopupMenuButton( itemBuilder: (context) => [ PopupMenuItem( value: 1, child: Text(entries[1]), ), PopupMenuItem( value:

Continue reading