PathNode constructor

PathNode({
  1. required NodeId id,
  2. required String svgPathData,
  3. Color? fillColor,
  4. Color? strokeColor,
  5. double strokeWidth = 1,
  6. PathFillRule fillRule = PathFillRule.nonZero,
  7. double hitPadding = 0,
  8. Transform2D? transform,
  9. double opacity = 1,
  10. bool isVisible = true,
  11. bool isSelectable = true,
  12. bool isLocked = false,
  13. bool isDeletable = true,
  14. bool isTransformable = true,
})

Implementation

PathNode({
  required super.id,
  required String svgPathData,
  this.fillColor,
  this.strokeColor,
  this.strokeWidth = 1,
  PathFillRule fillRule = PathFillRule.nonZero,
  super.hitPadding,
  super.transform,
  super.opacity,
  super.isVisible,
  super.isSelectable,
  super.isLocked,
  super.isDeletable,
  super.isTransformable,
}) : _svgPathData = svgPathData,
     _fillRule = fillRule,
     super(type: NodeType.path);