Relation constructor

const Relation({
  1. required String source,
  2. required String target,
  3. required String type,
  4. double weight = 1.0,
  5. String? validFrom,
  6. String? validUntil,
})

Implementation

const Relation({
  required this.source,
  required this.target,
  required this.type,
  this.weight = 1.0,
  this.validFrom,
  this.validUntil,
});