setData method
Implementation
void setData(List<OmegaEnumData> data) {
_itens.clear();
setState(() {
_itens = data;
if (_itens.length > 0) selectedText = _itens.first.presentation;
if (widget.selected != null && widget.selected!.isNotEmpty) {
selectedText = widget.selected;
}
});
}