decelerationDuration property

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

Implementation

final Duration decelerationDuration;