build method
Implementation
@override
Widget build(BuildContext context) {
var ls = items.mapList((e) => DropdownMenuItem<T>(value: e.value, child: Text(e.label)));
return DropdownButtonFormField<T>(
initialValue: value,
isExpanded: true,
items: ls,
onChanged: (e) {
value = e;
updateState();
onChanged?.call(value);
},
);
}