updateBounds
Updates either lowerBound or upperBound, or both. This will update Animatable.lowerBound and/or Animatable.upperBound accordingly after a check to ensure the provided lowerBound is no greater than upperBound in any dimension.
Setting the bounds will immediate clamp the value, only if the animation isn't running. For the on-going animation, the value at the next frame update will be checked against the bounds. If the value reaches the bound, then the animation will end with BoundReached end reason.
Parameters
lowerBound
lower bound of the animation. Defaults to the Animatable.lowerBound that is currently set.
upperBound
upper bound of the animation. Defaults to the Animatable.upperBound that is currently set.
Throws
if the lowerBound is greater than upperBound in any dimension.