updateArcLengths method
Update the cumulative segment distance cache. The method must be called every time curve parameters are changed. If an updated curve is part of a composed curve like CurvePath, updateArcLengths must be called on the composed curve, too.
Implementation
@override
void updateArcLengths() {
needsUpdate = true;
cacheLengths = null;
getCurveLengths();
}