ConceptEdge constructor

const ConceptEdge({
  1. required String sourceId,
  2. required String targetId,
  3. required RelationshipType relationshipType,
  4. required double strength,
  5. String label = '',
})

Implementation

const ConceptEdge({
  required this.sourceId,
  required this.targetId,
  required this.relationshipType,
  required this.strength,
  this.label = '',
})  : assert(strength >= 0.0 && strength <= 1.0,
          'Edge strength must be in [0, 1]');