ConnectorPainter constructor

ConnectorPainter({
  1. required MapCamera cam,
  2. required List<CollisionNode<Object?>> nodes,
  3. required List<CollisionPlacement> placements,
  4. required Color color,
  5. required double strokeWidth,
  6. required Size defaultSize,
  7. ConnectorStyle style = ConnectorStyle.curved,
  8. double bendFactor = 17.0,
  9. double minLengthPx = 3.0,
  10. double startGapPx = 0.5,
  11. double endGapPx = 4.0,
  12. bool halo = true,
  13. double haloWidth = 1.35,
  14. Color haloColor = const Color(0xFFFFFFFF),
  15. int haloAlpha = 76,
  16. int startAlpha = 112,
  17. int endAlpha = 188,
  18. bool dashed = false,
  19. double dash = 6.0,
  20. double gap = 4.0,
  21. bool endDot = false,
  22. double endDotRadius = 2.5,
  23. bool startDot = false,
  24. double startDotRadius = 2.5,
  25. Listenable? repaint,
})

Implementation

ConnectorPainter({
  required this.cam,
  required this.nodes,
  required this.placements,
  required this.color,
  required this.strokeWidth,
  required this.defaultSize,
  this.style = ConnectorStyle.curved,
  this.bendFactor = 17.0,
  this.minLengthPx = 3.0,
  this.startGapPx = 0.5,
  this.endGapPx = 4.0,
  this.halo = true,
  this.haloWidth = 1.35,
  this.haloColor = const Color(0xFFFFFFFF),
  this.haloAlpha = 76,
  this.startAlpha = 112,
  this.endAlpha = 188,
  this.dashed = false,
  this.dash = 6.0,
  this.gap = 4.0,
  this.endDot = false,
  this.endDotRadius = 2.5,
  this.startDot = false,
  this.startDotRadius = 2.5,
  super.repaint,
});