ShimmerEffect constructor

const ShimmerEffect({
  1. Duration duration = const Duration(milliseconds: 1500),
  2. Curve curve = Curves.easeInOut,
  3. Color baseColor = Colors.grey,
  4. Color highlightColor = Colors.white,
  5. double width = 0.3,
  6. Duration delayBetweenChars = Duration.zero,
})

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