DecorationImage constructor

const DecorationImage({
  1. required ImageProvider<Object> image,
  2. ImageErrorListener? onError,
  3. ColorFilter? colorFilter,
  4. BoxFit? fit,
  5. AlignmentGeometry alignment = Alignment.center,
  6. Rect? centerSlice,
  7. ImageRepeat repeat = ImageRepeat.noRepeat,
  8. bool matchTextDirection = false,
  9. double scale = 1.0,
  10. double opacity = 1.0,
  11. FilterQuality filterQuality = FilterQuality.medium,
  12. bool invertColors = false,
  13. bool isAntiAlias = false,
})

Creates an image to show in a BoxDecoration.

Implementation

const DecorationImage({
  required this.image,
  this.onError,
  this.colorFilter,
  this.fit,
  this.alignment = Alignment.center,
  this.centerSlice,
  this.repeat = ImageRepeat.noRepeat,
  this.matchTextDirection = false,
  this.scale = 1.0,
  this.opacity = 1.0,
  this.filterQuality = FilterQuality.medium,
  this.invertColors = false,
  this.isAntiAlias = false,
});