CommentNode<T> constructor
CommentNode<T> ({})
Implementation
CommentNode({
required super.id,
required super.position,
required String text,
required super.data,
double width = 200.0,
double height = 100.0,
this.color = Colors.yellow,
int zIndex = 0,
bool isVisible = true,
super.locked,
}) : _text = Observable(text),
super(
type: 'comment',
size: Size(width, height),
layer: NodeRenderLayer.foreground,
initialZIndex: zIndex,
visible: isVisible,
selectable: false, // Comments don't participate in marquee selection
inputPorts: const [],
outputPorts: const [],
);