decelerationDuration property
final
How long the deceleration takes.
At the end of each round, the scrolling speed gradually comes to a halt in this duration. This parameter is only useful if you embrace a pause after every round.
Sample code
A marquee that gradually comes to a halt in two seconds.
Marquee(
decelerationDuration: Duration(seconds: 2),
text: 'Gradually coming to a halt in two seconds.'
)
See also:
- decelerationCurve to define a custom curve for accelerating.
- accelerationDuration, the equivalent for decelerating.
Implementation
final Duration decelerationDuration;