isSettled method

bool isSettled(
  1. double target, [
  2. double threshold = 0.001
])

Implementation

bool isSettled(double target, [double threshold = 0.001]) {
  return (value - target).abs() < threshold && velocity.abs() < threshold;
}