BoxDecoration constructor

const BoxDecoration({
  1. Color? backgroundColor,
  2. String? backgroundImage,
  3. ObjectFit? imageFit,
  4. ObjectPosition? imagePosition,
  5. Gradient? gradient,
  6. Display? display,
  7. Color? foregroundColor,
  8. BorderData? border,
  9. bool? clip,
  10. BorderRadiusData? borderRadius,
  11. EdgeInsets? padding,
  12. EdgeInsets? margin,
  13. Alignment? alignment,
  14. PositionData? position,
  15. Shadow? shadow,
  16. double? opacity,
})

Create a new box decoration.

Implementation

const BoxDecoration({
  this.backgroundColor,
  this.backgroundImage,
  this.imageFit,
  this.imagePosition,
  this.gradient,
  this.display,
  this.foregroundColor,
  this.border,
  this.clip,
  this.borderRadius,
  this.padding,
  this.margin,
  this.alignment,
  this.position,
  this.shadow,
  this.opacity,
});