velocity property

double velocity

The rate of change of value per second.

If isAnimating is false, then value is not changing and the rate of change is zero.

Implementation

double get velocity {
  if (!isAnimating) {
    return 0.0;
  }
  return _simulation!.dx(lastElapsedDuration!.inMicroseconds.toDouble() / Duration.microsecondsPerSecond);
}