Picture constructor

const Picture(
  1. dynamic src, {
  2. Key? key,
  3. double scale = 1.0,
  4. ImageFrameBuilder? frameBuilder,
  5. ImageErrorWidgetBuilder? errorBuilder,
  6. double? width,
  7. double? height,
  8. Color? color,
  9. Animation<double>? opacity,
  10. BlendMode? colorBlendMode,
  11. BoxFit? fit,
  12. ImageLoadingBuilder? loadingBuilder,
  13. FilterQuality filterQuality = FilterQuality.low,
  14. AlignmentGeometry alignment = Alignment.center,
  15. ImageRepeat repeat = ImageRepeat.noRepeat,
  16. Rect? centerSlice,
  17. bool matchTextDirection = false,
  18. Map<String, String>? headers,
  19. double? radius,
  20. Color? backgroundColor,
  21. bool circular = false,
})

Implementation

const Picture(
  this.src, {
  super.key,
  double scale = 1.0,
  this.frameBuilder,
  this.errorBuilder,
  this.width,
  this.height,
  this.color,
  this.opacity,
  this.colorBlendMode,
  this.fit,
  this.loadingBuilder,
  this.filterQuality = FilterQuality.low,
  this.alignment = Alignment.center,
  this.repeat = ImageRepeat.noRepeat,
  this.centerSlice,
  this.matchTextDirection = false,
  this.headers,
  this.radius,
  this.backgroundColor,
  this.circular = false,
});