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,
Color color = Colors.yellow,
int zIndex = 0,
bool isVisible = true,
super.locked,
}) : _text = Observable(text),
_color = Observable(color),
super(
type: 'comment',
size: Size(width, height),
layer: NodeRenderLayer.foreground,
initialZIndex: zIndex,
visible: isVisible,
selectable: true,
inputPorts: const [],
outputPorts: const [],
);