Picture constructor
const
Picture(
- dynamic src, {
- Key? key,
- double scale = 1.0,
- ImageFrameBuilder? frameBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- double? width,
- double? height,
- Color? color,
- Animation<
double> ? opacity, - BlendMode? colorBlendMode,
- BoxFit? fit,
- ImageLoadingBuilder? loadingBuilder,
- FilterQuality filterQuality = FilterQuality.low,
- AlignmentGeometry alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- Rect? centerSlice,
- bool matchTextDirection = false,
- Map<
String, String> ? headers, - double? radius,
- Color? backgroundColor,
- 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,
});