ShimmerAiConfig constructor

const ShimmerAiConfig({
  1. Color baseColor = const Color(0xFFE0E0E0),
  2. Color highlightColor = const Color(0xFFF5F5F5),
  3. Duration duration = const Duration(milliseconds: 1500),
  4. ShimmerDirection direction = ShimmerDirection.ltr,
  5. double angle = 0.0,
  6. double borderRadius = 10.0,
  7. bool repeat = true,
  8. int? loopCount,
  9. LinearGradient? customGradient,
  10. double? width,
  11. double? height,
  12. EdgeInsetsGeometry? margin,
  13. EdgeInsetsGeometry? padding,
  14. AlignmentGeometry? alignment,
  15. BoxConstraints? constraints,
  16. Decoration? decoration,
})

Configuration for the shimmer effect, controlling its appearance and animation.

Implementation

const ShimmerAiConfig({
  this.baseColor = const Color(0xFFE0E0E0),
  this.highlightColor = const Color(0xFFF5F5F5),
  this.duration = const Duration(milliseconds: 1500),
  this.direction = ShimmerDirection.ltr,
  this.angle = 0.0,
  this.borderRadius = 10.0,
  this.repeat = true,
  this.loopCount,
  this.customGradient,
  this.width,
  this.height,
  this.margin,
  this.padding,
  this.alignment,
  this.constraints,
  this.decoration,
});