ImageStyle constructor
const
ImageStyle({
- double? width,
- double? height,
- double? maxWidth,
- double? maxHeight,
- double borderRadius = 0,
- BorderRadiusGeometry? borderRadiusGeometry,
- BoxBorder? border,
- List<
BoxShadow> ? boxShadow, - Color? backgroundColor,
- Color? color,
- BlendMode? colorBlendMode,
- ImageFilter? imageFilter,
- BoxFit fit = BoxFit.cover,
- Alignment alignment = Alignment.center,
- ImageRepeat repeat = ImageRepeat.noRepeat,
- double opacity = 1.0,
- Clip clipBehavior = Clip.hardEdge,
- bool isCircle = false,
- Color? placeholderColor,
- Color? errorColor,
Implementation
const ImageStyle({
this.width,
this.height,
this.maxWidth,
this.maxHeight,
this.borderRadius = 0,
this.borderRadiusGeometry,
this.border,
this.boxShadow,
this.backgroundColor,
this.color,
this.colorBlendMode,
this.imageFilter,
this.fit = BoxFit.cover,
this.alignment = Alignment.center,
this.repeat = ImageRepeat.noRepeat,
this.opacity = 1.0,
this.clipBehavior = Clip.hardEdge,
this.isCircle = false,
this.placeholderColor,
this.errorColor,
});