getAnimatedAxisPoint method
Implementation
double getAnimatedAxisPoint(
double endPoint, double animationValue, LinearGauge linearGauge) {
Offset startPointOffset =
linearGaugeLabel.primaryRulers[getLinearGaugeStart().toString()]!.first;
double startPoint =
(linearGauge.gaugeOrientation! == GaugeOrientation.horizontal)
? startPointOffset.dx
: startPointOffset.dy;
return startPoint + ((endPoint - startPoint) * animationValue);
}