EdgeStyle constructor

EdgeStyle({
  1. Paint? linePaint,
  2. LineStyle lineStyle = LineStyle.solid,
  3. double borderRadius = 0,
  4. double dashLength = 10,
  5. double gapLength = 5,
  6. double dotLength = 2,
  7. EdgeArrowType arrowType = EdgeArrowType.one,
  8. double tipAngle = pi * 0.1,
  9. double tipLength = 10.0,
})

Implementation

EdgeStyle({
  Paint? linePaint,
  this.lineStyle = LineStyle.solid,
  this.borderRadius = 0,
  this.dashLength = 10,
  this.gapLength = 5,
  this.dotLength = 2,
  this.arrowType = EdgeArrowType.one,
  this.tipAngle = pi * 0.1,
  this.tipLength = 10.0,
}) : this.linePaint = linePaint ??
          (Paint()
            ..color = Color(0xFF000000)
            ..style = PaintingStyle.stroke
            ..strokeCap = StrokeCap.round
            ..strokeJoin = StrokeJoin.round
            ..strokeWidth = 2);