ImageStyle constructor

const ImageStyle({
  1. double? width,
  2. double? height,
  3. double? maxWidth,
  4. double? maxHeight,
  5. double borderRadius = 0,
  6. BorderRadiusGeometry? borderRadiusGeometry,
  7. BoxBorder? border,
  8. List<BoxShadow>? boxShadow,
  9. Color? backgroundColor,
  10. Color? color,
  11. BlendMode? colorBlendMode,
  12. ImageFilter? imageFilter,
  13. BoxFit fit = BoxFit.cover,
  14. Alignment alignment = Alignment.center,
  15. ImageRepeat repeat = ImageRepeat.noRepeat,
  16. double opacity = 1.0,
  17. Clip clipBehavior = Clip.hardEdge,
  18. bool isCircle = false,
  19. Color? placeholderColor,
  20. 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,
});