GradientEffect constructor

const GradientEffect({
  1. Duration duration = const Duration(milliseconds: 2000),
  2. Curve curve = Curves.linear,
  3. List<Color> colors = const [Colors.blue, Colors.purple, Colors.pink],
  4. Axis direction = Axis.horizontal,
  5. Duration delayBetweenChars = Duration.zero,
})

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,
});