EdgeLabels class

List of params to draw labels on top or above the edges. Useful to comment relations between entities.

Constructors

EdgeLabels({required EdgeLabelBuilder builder, EdgeLabelTextAlignment alignment = EdgeLabelTextAlignment.before, EdgeLabelPositionPriority positionPriority = EdgeLabelPositionPriority.none})
const

Properties

alignment EdgeLabelTextAlignment
If set to EdgeLabelTextAlignment.before draws label before edge's line. Default value. If set to EdgeLabelTextAlignment.after draws label after edge's line.
final
builder EdgeLabelBuilder
Label widget's builder function. Provides Edge details.
final
hashCode int
The hash code for this object.
no setterinherited
positionPriority EdgeLabelPositionPriority
EdgeLabelPositionPriority.horizontal means to stick label to horizontal line inside edge path if possible. EdgeLabelPositionPriority.vertical means to stick label to vertical line inside edge path if possible. EdgeLabelPositionPriority.none default value, means to stick label to vertical line if graph's orientation is MatrixOrientation.Horizontal and to horizontal line of graph's orientation is MatrixOrientation.Vertical.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited