isDone method

  1. @override
bool isDone(
  1. double time
)
override

Whether the simulation is "done" at the given time.

Implementation

@override
bool isDone(double time) {
  if (startValue.isNaN) return time >= duration;
  if (startValue == endValue) return true;
  return time >= duration;
}