hide method
Hide the menu. If the index is null or less than 0, clicking outside will only hide the menu.
Implementation
void hide({int? index, bool isSelect = false, String? title}) {
if (null != index && index >= 0) {
_index = index;
if (_data.containsKey(index)) {
_data[index]['title'] = title;
_data[index]['is_select'] = isSelect;
} else {
_data[index] = {'is_select': isSelect, 'title': title};
}
}
_isShow = false;
notifyListeners();
}