ShimmerAiConfig constructor
const
ShimmerAiConfig({
- Color baseColor = const Color(0xFFE0E0E0),
- Color highlightColor = const Color(0xFFF5F5F5),
- Duration duration = const Duration(milliseconds: 1500),
- ShimmerDirection direction = ShimmerDirection.ltr,
- double angle = 0.0,
- double borderRadius = 10.0,
- bool repeat = true,
- int? loopCount,
- LinearGradient? customGradient,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- AlignmentGeometry? alignment,
- BoxConstraints? constraints,
- 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,
});