NodeGroup constructor

const NodeGroup({
  1. required String id,
  2. required String name,
  3. required Set<String> nodeIds,
  4. Color? color,
  5. bool isSelected = false,
  6. Map<String, dynamic>? metadata,
})

Creates a node group.

The id must be unique across all groups on the canvas. The name is the display label shown above the group. The nodeIds defines which nodes belong to this group. The color overrides the default group color. The metadata stores custom serializable data.

Implementation

const NodeGroup({
  required this.id,
  required this.name,
  required this.nodeIds,
  this.color,
  this.isSelected = false,
  this.metadata,
});