ArrowElement constructor
const
ArrowElement({
- Key? key,
- required String id,
- required Widget child,
- String? targetId,
- List<
String> ? targetIds, - bool show = true,
- AlignmentGeometry sourceAnchor = Alignment.centerLeft,
- AlignmentGeometry targetAnchor = Alignment.centerLeft,
- bool doubleSided = false,
- Color color = Colors.blue,
- double width = 3,
- double tipLength = 15,
- double tipAngleOutwards = pi * 0.2,
- double bow = 0.2,
- double stretchMin = 0,
- double stretchMax = 420,
- double stretch = 0.5,
- double padStart = 0,
- double padEnd = 0,
- bool flip = false,
- bool straights = true,
- 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);