GradientEffect constructor
const
GradientEffect({})
Creates a gradient sweep animation across characters.
duration — one full color cycle duration.
curve — easing curve for the sweep.
colors — the gradient color stops in order.
direction — sweep axis (horizontal or vertical).
delayBetweenChars — stagger between characters.
Implementation
const GradientEffect({
super.duration = const Duration(milliseconds: 2000),
super.curve = Curves.linear,
this.colors = const [Colors.blue, Colors.purple, Colors.pink],
this.direction = Axis.horizontal,
super.delayBetweenChars = Duration.zero,
});