FlowingDashEffect class

An animation effect that creates a flowing dash pattern along the connection.

The dashes appear to move along the path, similar to the classic "marching ants" effect commonly used in design tools.

Example:

connection.animationEffect = FlowingDashEffect(
  speed: 2.0,
  dashLength: 10.0,
  gapLength: 5.0,
);
Implemented types

Constructors

FlowingDashEffect({int speed = 1, int dashLength = 10, int gapLength = 5})
Creates a flowing dash animation effect.

Properties

dashLength int
Length of each dash segment in pixels
final
gapLength int
Length of gap between dash segments in pixels
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed int
Number of complete pattern cycles per animation period (integer for seamless looping)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
paint(Canvas canvas, Path path, Paint basePaint, double animationValue) → void
Paints the animated connection effect on the canvas.
override
toString() String
A string representation of this object.
inherited

Operators

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