DrawingParameters constructor

DrawingParameters(
  1. {Color? fillColor,
  2. Color? strokeColor,
  3. double? strokeWidth,
  4. StrokeCap? strokeLineCap,
  5. StrokeJoin? strokeLineJoin,
  6. Offset? translate,
  7. double? strokeLineMiterLimit,
  8. List<double>? transformMatrixValues}
)

Constructor : all values are optional. fillColor (Color) : Fill color : null for the absence of fill color. strokeColor (Color) : Stroke color: null for the absence of stroke color. strokeWidth (double) strokeLineCap (StrokeCap) : Stroke line cap : null for the absence of stroke line cap. strokeLineJoin (StrokeJoin) : Stroke line join : null for the absence of stroke line join. strokeLineMiterLimit (double) : Stroke line miter limit translate (Offset) : Translation of the element : null for the absence of translation. transformMatrix (Float64List) : Transform matrix of the element : null for the absence of transform matrix.

Implementation

DrawingParameters(
    {this.fillColor,
    this.strokeColor,
    this.strokeWidth,
    this.strokeLineCap,
    this.strokeLineJoin,
    this.translate,
    this.strokeLineMiterLimit,
    List<double>? transformMatrixValues})
    : transformMatrix = convertListIntoMatrix4(transformMatrixValues);