PulseEffect class
An animation effect that creates a pulsing/glowing effect on the connection.
The connection pulses by animating its opacity and optionally its width, creating a breathing or glowing effect.
Example:
connection.animationEffect = PulseEffect(
speed: 1,
minOpacity: 0.3,
maxOpacity: 1.0,
widthVariation: 1.5,
);
- Implemented types
- Available extensions
Constructors
- PulseEffect({int speed = 1, double minOpacity = 0.4, double maxOpacity = 1.0, double widthVariation = 1.0})
- Creates a pulse animation effect.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBuiltIn → bool
-
Available on ConnectionEffect, provided by the ConnectionEffectExtension extension
Check if this is a built-in connection effectno setter - maxOpacity → double
-
Maximum opacity during the pulse cycle
final
- minOpacity → double
-
Minimum opacity during the pulse cycle
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed → int
-
Number of complete pulse cycles per animation period (integer for seamless looping)
final
- widthVariation → double
-
Width multiplier at the peak of the pulse (1.0 = no width change)
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