CachedImage constructor

const CachedImage({
  1. Key? key,
  2. required String? url,
  3. String? placeholderAssets = "packages/flutter_smart/assets/images/placeholder.png",
  4. String? errorAssets = "packages/flutter_smart/assets/images/placeholder.png",
  5. BoxFit? fit,
  6. double? width,
  7. double? height,
  8. BorderRadiusGeometry? borderRadius,
  9. double? borderRadiusAll,
  10. BoxBorder? border,
  11. dynamic onTap(
    1. String?
    )?,
})

Implementation

const CachedImage({
  super.key,
  required this.url,
  this.placeholderAssets =
      "packages/flutter_smart/assets/images/placeholder.png",
  this.errorAssets = "packages/flutter_smart/assets/images/placeholder.png",
  this.fit,
  this.width,
  this.height,
  this.borderRadius,
  this.borderRadiusAll,
  this.border,
  this.onTap,
});