getAnimatedAxisPoint method

double getAnimatedAxisPoint(
  1. double endPoint,
  2. double animationValue,
  3. LinearGauge linearGauge
)

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);
}