NmGraphEdgeData constructor

const NmGraphEdgeData({
  1. required String id,
  2. required String sourceId,
  3. required String targetId,
  4. required NmEdgeType type,
  5. String? label,
  6. double weight = 1.0,
  7. bool isHighlighted = false,
  8. Map<String, dynamic> metadata = const {},
})

Creates a NmGraphEdgeData.

Implementation

const NmGraphEdgeData({
  required this.id,
  required this.sourceId,
  required this.targetId,
  required this.type,
  this.label,
  this.weight = 1.0,
  this.isHighlighted = false,
  this.metadata = const {},
});