ShapeEntity_ShapeStyle constructor

ShapeEntity_ShapeStyle({
  1. ShapeEntity_ShapeStyle_RGBAColor? fill,
  2. ShapeEntity_ShapeStyle_RGBAColor? stroke,
  3. double? strokeWidth,
  4. ShapeEntity_ShapeStyle_LineCap? lineCap,
  5. ShapeEntity_ShapeStyle_LineJoin? lineJoin,
  6. double? miterLimit,
  7. double? lineDashI,
  8. double? lineDashII,
  9. double? lineDashIII,
})

Implementation

factory ShapeEntity_ShapeStyle({
  ShapeEntity_ShapeStyle_RGBAColor? fill,
  ShapeEntity_ShapeStyle_RGBAColor? stroke,
  $core.double? strokeWidth,
  ShapeEntity_ShapeStyle_LineCap? lineCap,
  ShapeEntity_ShapeStyle_LineJoin? lineJoin,
  $core.double? miterLimit,
  $core.double? lineDashI,
  $core.double? lineDashII,
  $core.double? lineDashIII,
}) {
  final result = create();
  if (fill != null) result.fill = fill;
  if (stroke != null) result.stroke = stroke;
  if (strokeWidth != null) result.strokeWidth = strokeWidth;
  if (lineCap != null) result.lineCap = lineCap;
  if (lineJoin != null) result.lineJoin = lineJoin;
  if (miterLimit != null) result.miterLimit = miterLimit;
  if (lineDashI != null) result.lineDashI = lineDashI;
  if (lineDashII != null) result.lineDashII = lineDashII;
  if (lineDashIII != null) result.lineDashIII = lineDashIII;
  return result;
}