Abstract interface for connection animation effects.
Custom animation effects can be created by implementing this interface. Each effect encapsulates its own configuration and rendering logic.
Example:
class MyCustomEffect implements ConnectionEffect {
MyCustomEffect({required this.customParam});
final double customParam;
@override
void paint(Canvas canvas, Path path, Paint basePaint, double animationValue) {
// Custom animation rendering logic
}
}
- Implementers
- Available extensions
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 - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited