OverflowMarquee constructor

const OverflowMarquee({
  1. Key? key,
  2. required Widget child,
  3. Axis direction = Axis.horizontal,
  4. Duration duration = const Duration(seconds: 1),
  5. Duration delayDuration = const Duration(milliseconds: 500),
  6. double step = 100,
  7. double fadePortion = 25,
  8. Curve curve = Curves.linear,
})

Implementation

const OverflowMarquee({
  super.key,
  required this.child,
  this.direction = Axis.horizontal,
  this.duration = const Duration(seconds: 1),
  this.delayDuration = const Duration(milliseconds: 500),
  this.step = 100, // note: the speed of the marquee depends on this value
  // speed = (sizeDiff / step) * duration
  this.fadePortion = 25,
  this.curve = Curves.linear,
});