accelerationDuration property
final
How long the acceleration takes.
At the start of each round, the scrolling speed gains momentum for this duration. This parameter is only useful if you embrace a pause after every round.
Sample code
A marquee that slowly accelerates in two seconds.
Marquee(
accelerationDuration: Duration(seconds: 2),
text: 'Gaining momentum in two seconds.'
)
See also:
- accelerationCurve to define a custom curve for accelerating.
- decelerationDuration, the equivalent for decelerating.
Implementation
final Duration accelerationDuration;