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
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- Connector
- Available extensions
Constructors
Properties
- color → Color?
-
The stroke color, or
nullto take the firstcontext.fluviepalette color.final - drawIn → Time?
-
The draw-on reveal window resolved against the element scope, or
nullto 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
-
An optional hero anchor: when non-null the connector morphs across the
boundary it shares with the same anchor in the adjacent scene.
nullmounts noSharedElement.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
Bindsanimationsto this widget by wrapping it in aMotionTarget. -
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))withfromdefaulting to the window start andtoto 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