ArrowElement constructor

const ArrowElement({
  1. Key? key,
  2. required String id,
  3. required Widget child,
  4. String? targetId,
  5. List<String>? targetIds,
  6. bool show = true,
  7. AlignmentGeometry sourceAnchor = Alignment.centerLeft,
  8. AlignmentGeometry targetAnchor = Alignment.centerLeft,
  9. bool doubleSided = false,
  10. Color color = Colors.blue,
  11. double width = 3,
  12. double tipLength = 15,
  13. double tipAngleOutwards = pi * 0.2,
  14. double bow = 0.2,
  15. double stretchMin = 0,
  16. double stretchMax = 420,
  17. double stretch = 0.5,
  18. double padStart = 0,
  19. double padEnd = 0,
  20. bool flip = false,
  21. bool straights = true,
  22. ArcDirection arcDirection = ArcDirection.Auto,
})

Implementation

const ArrowElement({
  Key? key,
  required this.id,
  required this.child,
  this.targetId,
  this.targetIds,
  this.show = true,
  this.sourceAnchor = Alignment.centerLeft,
  this.targetAnchor = Alignment.centerLeft,
  this.doubleSided = false,
  this.color = Colors.blue,
  this.width = 3,
  this.tipLength = 15,
  this.tipAngleOutwards = pi * 0.2,
  this.bow = 0.2,
  this.stretchMin = 0,
  this.stretchMax = 420,
  this.stretch = 0.5,
  this.padStart = 0,
  this.padEnd = 0,
  this.flip = false,
  this.straights = true,
  this.arcDirection = ArcDirection.Auto,
})  : assert(targetId == null || targetIds == null),
      super(key: key);