AppImageCached constructor

const AppImageCached({
  1. Key? key,
  2. required String url,
  3. double? width,
  4. double? height,
  5. BoxFit fit = BoxFit.cover,
  6. double radius = AppRadius.medium,
  7. Color? overlayColor,
  8. BoxBorder? border,
  9. BoxShadow? shadow,
  10. VoidCallback? onTap,
  11. Alignment alignment = Alignment.center,
  12. IconData? placeholderIcon,
  13. IconData? errorIcon,
  14. Color? placeholderColor,
  15. Duration fadeInDuration = const Duration(milliseconds: 300),
})

Implementation

const AppImageCached({
  super.key,
  required this.url,
  this.width,
  this.height,
  this.fit = BoxFit.cover,
  this.radius = AppRadius.medium,
  this.overlayColor,
  this.border,
  this.shadow,
  this.onTap,
  this.alignment = Alignment.center,
  this.placeholderIcon,
  this.errorIcon,
  this.placeholderColor,
  this.fadeInDuration = const Duration(milliseconds: 300),
});