static bool isMounted(State<StarMenu> state) { // Is it correct to use the hashCode?? return _overlayEntry != null && state.widget.hashCode == _sm.hashCode; }