ImageLoader.image constructor

ImageLoader.image(
  1. String? url, {
  2. Key? key,
  3. PlaceholderWidgetBuilder? placeBuilder,
  4. LoadingErrorWidgetBuilder? errorBuilder,
  5. BoxFit fit = BoxFit.cover,
  6. double? width,
  7. double? height,
  8. String? thumbUrl,
  9. String? placeHolder,
  10. String? errorHolder,
  11. String? heroTag,
  12. bool transitionOnUserGestures = false,
  13. Decoration? decoration,
  14. double? border,
  15. Color? borderColor,
  16. Type? notification,
  17. bool useSingleCache = false,
  18. Duration? fadeOutDuration,
  19. Duration? fadeInDuration,
  20. List<BoxShadow>? boxShadow,
})

Implementation

ImageLoader.image(
  this.url, {
  super.key,
  this.placeBuilder,
  this.errorBuilder,
  this.fit = BoxFit.cover,
  double? width,
  double? height,
  String? thumbUrl,
  this.placeHolder,
  this.errorHolder,
  this.heroTag,
  this.transitionOnUserGestures = false,
  this.decoration,
  this.border,
  this.borderColor,
  this.notification,
  this.useSingleCache = false,
  this.fadeOutDuration,
  this.fadeInDuration,
  this.boxShadow,
}) {
  _width = width;
  _height = height;
  _type = typeNormal;
  _thumbUrl = thumbUrl;
}