AnimatedPointConnection class
Represents an animated point connection between two points on a globe.
This class extends PointConnection and adds the animationOffset and animationProgress properties.
- Inheritance
-
- Object
- PointConnection
- AnimatedPointConnection
Constructors
- AnimatedPointConnection.new({required GlobeCoordinates start, required GlobeCoordinates end, required String id, String? label, TextStyle? labelTextStyle, bool isMoving = false, VoidCallback? onTap, VoidCallback? onHover, PointConnectionStyle style = const PointConnectionStyle(), Offset labelOffset = const Offset(0, 0), double curveScale = 1.5, bool isLabelVisible = false, Widget? labelBuilder(BuildContext context, PointConnection pointConnection, bool isHovering, bool isVisible)?, double animationProgress = 0.0, double animationOffset = 0.0})
- Creates a new AnimatedPointConnection instance.
- AnimatedPointConnection.fromPointConnection({required PointConnection pointConnection, double animationOffset = 0.0, double animationProgress = 0.0})
- Creates a new AnimatedPointConnection instance from an existing PointConnection.
Properties
- animationOffset ↔ double
-
getter/setter pair
- animationProgress ↔ double
-
getter/setter pair
- curveScale → double
-
finalinherited
- end → GlobeCoordinates
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
finalinherited
- isLabelVisible ↔ bool
-
getter/setter pairinherited
- isMoving ↔ bool
-
getter/setter pairinherited
- label → String?
-
finalinherited
- labelBuilder → Widget? Function(BuildContext context, PointConnection pointConnection, bool isHovering, bool isVisible)?
-
finalinherited
- labelOffset → Offset
-
finalinherited
- labelTextStyle → TextStyle?
-
finalinherited
- onHover → VoidCallback?
-
finalinherited
- onTap → VoidCallback?
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → GlobeCoordinates
-
finalinherited
- strokeWidth → double
-
no setterinherited
- style → PointConnectionStyle
-
finalinherited
Methods
-
copyWith(
{GlobeCoordinates? start, GlobeCoordinates? end, Offset? labelOffset, double? curveScale, String? label, TextStyle? labelTextStyle, String? id, Widget? labelBuilder(BuildContext context, PointConnection pointConnection, bool isHovering, bool isVisible)?, bool? isMoving, bool? isLabelVisible, PointConnectionStyle? style, VoidCallback? onTap, VoidCallback? onHover, double? animationOffset, double? animationProgress}) → PointConnection -
Creates a new PointConnection instance with updated properties.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited