GraphConnectionGeometry class abstract

Manages geometric relationships between connected nodes.

See also:

  • GraphLinkViewGeometry, which uses this for link rendering
  • GraphViewBehavior, which calculates connection points
Implemented types
Annotations
  • @freezed

Constructors

GraphConnectionGeometry({required GraphNodeViewGeometry source, required GraphNodeViewGeometry target, required GraphConnectionPoints connectionPoints})
Creates connection geometry between two nodes.
const
factory

Properties

connectionPoints GraphConnectionPoints
The specific points where the link intersects with source and target nodes.
no setterinherited
copyWith → $GraphConnectionGeometryCopyWith<GraphConnectionGeometry>
Create a copy of GraphConnectionGeometry with the given fields replaced by the non-null parameter values.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source GraphNodeViewGeometry
The source node's layout geometry from which the link originates.
no setterinherited
target GraphNodeViewGeometry
The target node's layout geometry where the link terminates.
no setterinherited

Methods

debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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, int wrapWidth = 65}) 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 brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

of(BuildContext context) GraphConnectionGeometry?
Retrieves the current connection geometry from the widget tree.