const BoxDecoration({Color backgroundColor, BackgroundImage backgroundImage, Border border, BorderRadius borderRadius, List<BoxShadow> boxShadow, Gradient gradient, BoxShape shape: BoxShape.rectangle })

Creates a box decoration.

  • If backgroundColor is null, this decoration does not paint a background color.
  • If backgroundImage is null, this decoration does not paint a background image.
  • If border is null, this decoration does not paint a border.
  • If borderRadius is null, this decoration uses more efficient background painting commands. The borderRadius argument must be be null if shape is BoxShape.circle.
  • If boxShadow is null, this decoration does not paint a shadow.
  • If gradient is null, this decoration does not paint gradients.

Source

const BoxDecoration({
  this.backgroundColor,
  this.backgroundImage,
  this.border,
  this.borderRadius,
  this.boxShadow,
  this.gradient,
  this.shape: BoxShape.rectangle
});