changeOnDragState method

void changeOnDragState(
  1. bool state
)

Changes the drag state to state and notifies listeners if changed.

Implementation

void changeOnDragState(final bool state) {
  if(state != onDrag) {
    onDrag = state;
    notifyListeners();
  }
}