selectItem method
Implementation
void selectItem(MenuItem item) {
value = value.copyWith(selectedItem: item, isOverlayVisible: false);
_focusNode?.unfocus();
hideOverlay();
print(item.value);
}
void selectItem(MenuItem item) {
value = value.copyWith(selectedItem: item, isOverlayVisible: false);
_focusNode?.unfocus();
hideOverlay();
print(item.value);
}