WowIcon.image constructor

const WowIcon.image(
  1. dynamic value, {
  2. Key? key,
  3. double? height,
  4. double? width,
  5. BoxFit? boxFit = BoxFit.scaleDown,
  6. Color? color,
  7. Widget? loadingWidget,
  8. Widget? errorWidget,
  9. double scale = 1.0,
  10. String? semanticLabel,
  11. bool excludeFromSemantics = false,
  12. Animation<double>? opacity,
  13. BlendMode? colorBlendMode,
  14. AlignmentGeometry 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. Color? waitingColor,
  24. bool saveLog = true,
})

Implementation

const WowIcon.image(
  this.value, {
  super.key,
  this.height,
  this.width,
  this.boxFit = BoxFit.scaleDown,
  this.color,
  this.loadingWidget,
  this.errorWidget,
  this.scale = 1.0,
  this.semanticLabel,
  this.excludeFromSemantics = false,
  this.opacity,
  this.colorBlendMode,
  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.waitingColor,
  this.saveLog = true,
}) : size = (height ?? 0) > (width ?? 0) ? height : width;