Stroke constructor

const Stroke({
  1. Color? color,
  2. Gradient? shader,
  3. StrokeCap? cap,
  4. StrokeJoin? join,
  5. double? miterLimit,
  6. double? width,
})

Creates a new collection of stroking properties.

Implementation

const Stroke({
  Color? color,
  this.shader,
  this.cap,
  this.join,
  this.miterLimit,
  this.width,
}) : color = color ?? Color.opaqueBlack;