HighlightEffect constructor

const HighlightEffect({
  1. Duration duration = const Duration(milliseconds: 800),
  2. Curve curve = Curves.easeInOut,
  3. Color highlightColor = Colors.yellow,
  4. double opacityFrom = 0.0,
  5. double opacityTo = 0.6,
  6. Duration delayBetweenChars = const Duration(milliseconds: 40),
})

Creates a highlight sweep animation.

duration — animation cycle duration per character. curve — easing curve for the highlight. highlightColor — background color for the highlight. opacityFrom — starting highlight opacity. opacityTo — peak highlight opacity. delayBetweenChars — stagger delay between characters.

Implementation

const HighlightEffect({
  super.duration = const Duration(milliseconds: 800),
  super.curve = Curves.easeInOut,
  this.highlightColor = Colors.yellow,
  this.opacityFrom = 0.0,
  this.opacityTo = 0.6,
  super.delayBetweenChars = const Duration(milliseconds: 40),
});