TextScroll constructor

const TextScroll(
  1. String text, {
  2. Key? key,
  3. TextStyle? style,
  4. TextAlign? textAlign,
  5. TextDirection textDirection = TextDirection.ltr,
  6. int? numberOfReps,
  7. Duration? delayBefore,
  8. Duration? pauseBetween,
  9. Duration? pauseOnBounce,
  10. TextScrollMode mode = TextScrollMode.endless,
  11. Velocity velocity = const Velocity(pixelsPerSecond: Offset(80, 0)),
  12. bool selectable = false,
  13. int? intervalSpaces,
  14. bool fadedBorder = false,
  15. double? fadedBorderWidth = 0.2,
  16. FadeBorderSide fadeBorderSide = FadeBorderSide.both,
  17. FadeBorderVisibility fadeBorderVisibility = FadeBorderVisibility.auto,
})

Implementation

const TextScroll(
  this.text, {
  Key? key,
  this.style,
  this.textAlign,
  this.textDirection = TextDirection.ltr,
  this.numberOfReps,
  this.delayBefore,
  this.pauseBetween,
  this.pauseOnBounce,
  this.mode = TextScrollMode.endless,
  this.velocity = const Velocity(pixelsPerSecond: Offset(80, 0)),
  this.selectable = false,
  this.intervalSpaces,
  this.fadedBorder = false,
  this.fadedBorderWidth = 0.2,
  this.fadeBorderSide = FadeBorderSide.both,
  this.fadeBorderVisibility = FadeBorderVisibility.auto,
}) : super(key: key);