NmGraphNodeData constructor

const NmGraphNodeData({
  1. required String id,
  2. required NmGraphNodeType type,
  3. required String label,
  4. String? subtitle,
  5. Offset position = Offset.zero,
  6. Offset velocity = Offset.zero,
  7. bool isFixed = false,
  8. bool isSelected = false,
  9. bool isHighlighted = false,
  10. Map<String, dynamic> metadata = const {},
})

Creates a NmGraphNodeData.

Implementation

const NmGraphNodeData({
  required this.id,
  required this.type,
  required this.label,
  this.subtitle,
  this.position = Offset.zero,
  this.velocity = Offset.zero,
  this.isFixed = false,
  this.isSelected = false,
  this.isHighlighted = false,
  this.metadata = const {},
});