HighlightEffect constructor
const
HighlightEffect({})
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),
});