NetworkNode constructor

NetworkNode({
  1. required String id,
  2. String? label,
  3. String? group,
  4. double? x,
  5. double? y,
  6. double vx = 0,
  7. double vy = 0,
  8. bool fixed = false,
  9. double radius = 10,
  10. Color? color,
  11. Map<String, dynamic>? metadata,
})

Implementation

NetworkNode({
  required this.id,
  this.label,
  this.group,
  double? x,
  double? y,
  this.vx = 0,
  this.vy = 0,
  this.fixed = false,
  this.radius = 10,
  this.color,
  this.metadata,
})  : x = x ?? 0,
      y = y ?? 0;