ShimmerEffect constructor
const
ShimmerEffect({})
Creates a shimmer highlight sweep animation.
duration — one full shimmer sweep duration.
curve — easing curve for the sweep.
baseColor — default color outside the highlight band.
highlightColor — bright highlight band color.
width — highlight band width as fraction (0–1).
delayBetweenChars — stagger (zero for smooth sweep).
Implementation
const ShimmerEffect({
super.duration = const Duration(milliseconds: 1500),
super.curve = Curves.easeInOut,
this.baseColor = Colors.grey,
this.highlightColor = Colors.white,
this.width = 0.3,
super.delayBetweenChars = Duration.zero,
});