ArrowElement class

Inheritance

Constructors

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})
const

Properties

arcDirection ArcDirection
If arrow is not straight, which direction the arc should follow
final
bow double
A value representing the natural bow of the arrow. At 0, all lines will be straight.
final
child Widget
A Widget to be drawn to or from
final
color Color
Arrow color
final
doubleSided bool
Whether the arrow should be pointed both ways
final
flip bool
Whether to reflect the arrow's bow angle. Only used if arcRotation is ArcDirection.Auto
final
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
id String
ID for being targeted by other ArrowElements
final
key Key
Controls how one widget replaces another widget in the tree. [...]
final, inherited
padEnd double
How far the arrow's ending point should be from the provided end point.
final
padStart double
How far the arrow's starting point should be from the provided start point.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
show bool
Whether to show the arrow
final
sourceAnchor AlignmentGeometry
Where on the source Widget the arrow should start
final
straights bool
Whether to use straight lines at 45 degree angles.
final
stretch double
The effect that the arrow's length will have, relative to its minStretch and maxStretch, on the bow of the arrow. At 0, the stretch will have no effect.
final
stretchMax double
The length of the arrow at which the stretch should have no effect.
final
stretchMin double
The length of the arrow where the line should be most stretched. Shorter distances than 0 will have no additional effect on the bow of the arrow.
final
targetAnchor AlignmentGeometry
Where on the target Widget the arrow should end
final
targetId String
The ID of the ArrowElement that will be drawn to
final
targetIds List<String>
A List of IDs of ArrowElement that will be drawn to
final
tipAngleOutwards double
Outwards angle of arrow tip, in radians
final
tipLength double
Length of arrow tip
final
width double
Arrow width
final

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree. [...]
inherited
createState() → _ArrowElementState
Creates the mutable state for this widget at a given location in the tree. [...]
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toDiagnosticsNode({String name, DiagnosticsTreeStyle style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object. [...]
inherited
toStringDeep({String prefixLineOne = '', String prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited