UniversalImage constructor

const UniversalImage(
  1. String imageUri, {
  2. Key? key,
  3. double scale = 1.0,
  4. IconData? icon,
  5. ImageFrameBuilder? frameBuilder,
  6. ImageErrorWidgetBuilder? errorBuilder,
  7. String? semanticLabel,
  8. bool excludeFromSemantics = false,
  9. double? width,
  10. double? height,
  11. Color? color,
  12. BlendMode? colorBlendMode,
  13. BoxFit? fit,
  14. Alignment alignment = Alignment.center,
  15. ImageRepeat repeat = ImageRepeat.noRepeat,
  16. Rect? centerSlice,
  17. bool matchTextDirection = false,
  18. bool gaplessPlayback = false,
  19. bool isAntiAlias = false,
  20. FilterQuality filterQuality = FilterQuality.low,
  21. int? cacheWidth,
  22. int? cacheHeight,
  23. bool allowDrawingOutsideViewBox = false,
  24. bool svgSkiaMode = false,
  25. double? size,
  26. TextDirection? textDirection,
  27. Widget? placeholder,
  28. Widget? errorPlaceholder,
  29. bool cache = true,
  30. bool enableMemoryCache = true,
  31. bool clearMemoryCacheIfFailed = true,
  32. bool clearMemoryCacheWhenDispose = false,
  33. String assetPrefix = 'assets',
  34. double? compressionRatio,
  35. int? maxBytes,
  36. ImageEngine imageEngine = ImageEngine.extendedImage,
  37. Object? heroTag,
  38. ColorFilter? colorFilter,
})

Create image widet base on uri

Implementation

const UniversalImage(
  this.imageUri, {
  Key? key,
  this.scale = 1.0,
  this.icon,
  this.frameBuilder,
  this.errorBuilder,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.width,
  this.height,
  this.color,
  this.colorBlendMode,
  this.fit,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.centerSlice,
  this.matchTextDirection = false,
  this.gaplessPlayback = false,
  this.isAntiAlias = false,
  this.filterQuality = FilterQuality.low,
  this.cacheWidth,
  this.cacheHeight,
  this.allowDrawingOutsideViewBox = false,
  this.svgSkiaMode = false,
  this.size,
  this.textDirection,
  this.placeholder,
  this.errorPlaceholder,
  this.cache = true,
  this.enableMemoryCache = true,
  this.clearMemoryCacheIfFailed = true,
  this.clearMemoryCacheWhenDispose = false,
  this.assetPrefix = 'assets',
  this.compressionRatio,
  this.maxBytes,
  this.imageEngine = ImageEngine.extendedImage,
  this.heroTag,
  this.colorFilter,
}) : super(key: key);