getAnimatedLeft method

double getAnimatedLeft(
  1. double percent
)

Implementation

double getAnimatedLeft(double percent){
  final diff = targetLeft - left!;
  final ratio = diff * percent;
  return targetLeft - (diff - ratio);
}