AutoShimmer constructor

const AutoShimmer({
  1. Key? key,
  2. required Widget child,
  3. Duration duration = const Duration(seconds: 2),
  4. Color baseColor = const Color(0xFFE0E0E0),
  5. Color highlightColor = const Color(0xFFF5F5F5),
  6. bool showShimmer = true,
})

Creates an AutoShimmer widget.

The child parameter is required and represents the widget that will receive the shimmer effect.

Implementation

const AutoShimmer({
  super.key,
  required this.child,
  this.duration = const Duration(seconds: 2),
  this.baseColor = const Color(0xFFE0E0E0),
  this.highlightColor = const Color(0xFFF5F5F5),
  this.showShimmer = true,
});