duration property
The duration of the animation transition.
This determines how long it takes to animate from the starting value to the target value. Changing this during an active animation will affect the remaining animation time.
Implementation
final Duration duration;