isDone method Null safety
- double time
override
Whether the simulation is "done" at the given time.
Implementation
@override
bool isDone(double time) {
return super.isDone(time) ||
(x(time) - _minX).abs() < tolerance.distance ||
(x(time) - _maxX).abs() < tolerance.distance;
}