PathNode constructor
PathNode({ - required NodeId id,
- required String svgPathData,
- Color? fillColor,
- Color? strokeColor,
- double strokeWidth = 1,
- PathFillRule fillRule = PathFillRule.nonZero,
- double hitPadding = 0,
- Transform2D? transform,
- double opacity = 1,
- bool isVisible = true,
- bool isSelectable = true,
- bool isLocked = false,
- bool isDeletable = true,
- 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);