Creates a new Translation.
Source
Translation(num startValue, num targetValue, num time, [TransitionFunction transition = Transition.linear]) : _startValue = startValue, _targetValue = targetValue, _transition = transition { _currentValue = startValue; _totalTime = max(0.0001, time); }