Connector class final

A line linking two explicit points — the explicit-position form; anchor-geometry resolution is not yet supported.

A Connector is a leaf painter — it draws geometry and wraps no child, so it is not a CollectibleChildren. It joins from to to with a straight line, or with a right-angle elbow that bends through a corner (horizontal first, then vertical). Over its drawIn reveal it draws on from from toward to; with no drawIn it renders complete at every frame.

Connector(from: const Offset(60, 60), to: const Offset(220, 160), elbow: true)
    .animate([Animation.fadeIn()]);

The color defaults to the first context.fluvie palette color so a FluvieTokensScope rebrands every annotation at once; pass color to override. Transforms and effects ride .animate() only. shared wraps the result in a SharedElement for a hero morph across a scene boundary.

Inheritance
Available extensions

Constructors

Connector({required Offset from, required Offset to, bool elbow = false, Color? color, double strokeWidth = _defaultStrokeWidth, Time? drawIn, Anchor? shared, Key? key})
A connector from from to to, straight unless elbow is set.
const

Properties

color Color?
The stroke color, or null to take the first context.fluvie palette color.
final
drawIn Time?
The draw-on reveal window resolved against the element scope, or null to render fully at every frame.
final
elbow bool
Whether the connector bends through a right-angle corner (horizontal then vertical) instead of running straight.
final
from Offset
The first linked point.
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shared Anchor?
An optional hero anchor: when non-null the connector morphs across the boundary it shares with the same anchor in the adjacent scene. null mounts no SharedElement.
final
strokeWidth double
The stroke width in logical pixels.
final
to Offset
The second linked point.
final

Methods

animate(List<Animation> animations, {Anchor? anchor, TimeRange? window, Defaults? defaults}) Widget

Available on Widget, provided by the Animate extension

Binds animations to this widget by wrapping it in a MotionTarget.
build(BuildContext context) Widget
Describes the part of the user interface represented by this widget.
override
createElement() StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
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
show({Time? from, Time? to}) Widget

Available on Widget, provided by the Animate extension

Visibility-window sugar: animate([], window: from.to(to)) with from defaulting to the window start and to to its end.
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 short, textual description of this widget.
inherited

Operators

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