FancyShimmerImage constructor
FancyShimmerImage({
- Key? key,
- required String imageUrl,
- BoxFit boxFit = BoxFit.fill,
- double width = 300,
- double height = 300,
- ShimmerDirection shimmerDirection = ShimmerDirection.ltr,
- Duration shimmerDuration = const Duration(milliseconds: 1500),
- String? cacheKey,
- Color? shimmerBaseColor,
- Color? shimmerHighlightColor,
- Color? shimmerBackColor,
- Widget? errorWidget,
- BoxDecoration? boxDecoration,
- Color? color,
- Alignment? alignment,
- ImageWidgetBuilder? imageBuilder,
Implementation
FancyShimmerImage({
Key? key,
required this.imageUrl,
this.boxFit = BoxFit.fill,
this.width = 300,
this.height = 300,
this.shimmerDirection = ShimmerDirection.ltr,
this.shimmerDuration = const Duration(milliseconds: 1500),
this.cacheKey,
this.shimmerBaseColor,
this.shimmerHighlightColor,
this.shimmerBackColor,
this.errorWidget,
this.boxDecoration,
this.color,
this.alignment,
this.imageBuilder,
}) : super(key: key);