FancyShimmerImage constructor

FancyShimmerImage({
  1. Key? key,
  2. required String imageUrl,
  3. BoxFit boxFit = BoxFit.fill,
  4. double width = 300,
  5. double height = 300,
  6. ShimmerDirection shimmerDirection = ShimmerDirection.ltr,
  7. Duration shimmerDuration = const Duration(milliseconds: 1500),
  8. String? cacheKey,
  9. Color? shimmerBaseColor,
  10. Color? shimmerHighlightColor,
  11. Color? shimmerBackColor,
  12. Widget? errorWidget,
  13. BoxDecoration? boxDecoration,
  14. Color? color,
  15. Alignment? alignment,
  16. 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);