NetImage constructor

const NetImage(
  1. String imageUrl, {
  2. Key? key,
  3. ImageWidgetBuilder? imageBuilder,
  4. PlaceholderWidgetBuilder? placeholder,
  5. LoadingErrorWidgetBuilder? errorWidget,
  6. Duration fadeOutDuration = const Duration(milliseconds: 300),
  7. Curve fadeOutCurve = Curves.easeOut,
  8. Duration fadeInDuration = const Duration(milliseconds: 700),
  9. Curve fadeInCurve = Curves.easeIn,
  10. double? width,
  11. double? height,
  12. BoxFit? fit,
  13. AlignmentGeometry alignment = Alignment.center,
  14. ImageRepeat repeat = ImageRepeat.noRepeat,
  15. bool matchTextDirection = false,
  16. Map<String, String>? httpHeaders,
  17. BaseCacheManager? cacheManager,
  18. bool useOldImageOnUrlChange = false,
  19. Color? color,
  20. BlendMode? colorBlendMode,
  21. bool fullScreen = false,
  22. bool hero = false,
  23. BorderRadius? borderRadius,
  24. GestureTapCallback? onTap,
})

Implementation

const NetImage(
  this.imageUrl, {
  super.key,
  this.imageBuilder,
  this.placeholder,
  this.errorWidget,
  this.fadeOutDuration = const Duration(milliseconds: 300),
  this.fadeOutCurve = Curves.easeOut,
  this.fadeInDuration = const Duration(milliseconds: 700),
  this.fadeInCurve = Curves.easeIn,
  this.width,
  this.height,
  this.fit,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.matchTextDirection = false,
  this.httpHeaders,
  this.cacheManager,
  this.useOldImageOnUrlChange = false,
  this.color,
  this.colorBlendMode,
  this.fullScreen = false,
  this.hero = false,
  this.borderRadius,
  this.onTap,
});