accelerationDuration property

Duration accelerationDuration
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:

Implementation

final Duration accelerationDuration;