CanvasPathDrawingStyles constructor

CanvasPathDrawingStyles({
  1. CanvasLineCap? lineCap,
  2. num? lineDashOffset,
  3. CanvasLineJoin? lineJoin,
  4. num? lineWidth,
  5. num? miterLimit,
  6. List<num> getLineDash()?,
})

Implementation

factory CanvasPathDrawingStyles({
  _i3.CanvasLineCap? lineCap,
  _i2.num? lineDashOffset,
  _i3.CanvasLineJoin? lineJoin,
  _i2.num? lineWidth,
  _i2.num? miterLimit,
  _i2.List<_i2.num> Function()? getLineDash,
}) =>
    CanvasPathDrawingStyles._(
      lineCap: lineCap?.name ?? _i6.undefined,
      lineDashOffset: lineDashOffset,
      lineJoin: lineJoin?.name ?? _i6.undefined,
      lineWidth: lineWidth,
      miterLimit: miterLimit,
      getLineDash: getLineDash == null ? null : _i4.allowInterop(getLineDash),
    );