DashedDecoration constructor

const DashedDecoration({
  1. Color? color,
  2. DecorationImage? image,
  3. BoxBorder? border,
  4. BorderRadiusGeometry? borderRadius,
  5. List<BoxShadow>? boxShadow,
  6. Gradient? gradient,
  7. BlendMode? backgroundBlendMode,
  8. BoxShape? shape = BoxShape.rectangle,
  9. double strokeHeight = 1.0,
  10. double gap = 2.0,
  11. Color? dashedColor,
  12. bool? dawDashed = true,
})

Creates a box decoration.

  • If color is null, this decoration does not paint a background color.
  • If image 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 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.
  • If backgroundBlendMode is null, this decoration paints with BlendMode.srcOver

The shape argument must not be null.

Implementation

const DashedDecoration({
  this.color,
  this.image,
  this.border,
  this.borderRadius,
  this.boxShadow,
  this.gradient,
  this.backgroundBlendMode,
  this.shape = BoxShape.rectangle,
  this.strokeHeight = 1.0,
  this.gap = 2.0,
  this.dashedColor,
  this.dawDashed = true,
});