changeOnDragState method
Updates the drag state to state
and notifies listeners if changed.
Implementation
void changeOnDragState(final bool state) {
// Only update if state differs
if(state != onDrag) {
onDrag = state;
// Notify listeners of state change
notifyListeners();
}
}