isMoved method

bool isMoved(
  1. double treshold
)

Use this function to determine if the view is moved or not.

Implementation

bool isMoved(double treshold) {
  return deltaNotifier.value.dx.abs() > treshold || deltaNotifier.value.dy.abs() > treshold;
}