AnimatedPointConnection constructor

AnimatedPointConnection({
  1. required GlobeCoordinates start,
  2. required GlobeCoordinates end,
  3. required String id,
  4. String? label,
  5. TextStyle? labelTextStyle,
  6. bool isMoving = false,
  7. VoidCallback? onTap,
  8. VoidCallback? onHover,
  9. PointConnectionStyle style = const PointConnectionStyle(),
  10. Offset labelOffset = const Offset(0, 0),
  11. double curveScale = 1.5,
  12. bool isLabelVisible = false,
  13. Widget? labelBuilder(
    1. BuildContext context,
    2. PointConnection pointConnection,
    3. bool isHovering,
    4. bool isVisible,
    )?,
  14. double animationProgress = 0.0,
  15. double animationOffset = 0.0,
})

Creates a new AnimatedPointConnection instance.

The start and end parameters represent the coordinates of the start and end points of the connection. The id parameter is a unique identifier for the connection. The label parameter is an optional label for the connection. The labelOffset parameter represents the offset of the label from the connection line. The curveScale parameter represents the scale of the curve. The labelBuilder parameter is a function that builds the label widget for the connection. The labelTextStyle parameter represents the style of the label text. The isMoving parameter indicates whether the connection is currently moving. The isLabelVisible parameter indicates whether the label is currently visible. The style parameter represents the style of the connection line. The onTap parameter is a callback function that is called when the connection is tapped. The onHover parameter is a callback function that is called when the connection is hovered over. The animationProgress parameter represents the progress of the animation. The animationOffset parameter represents the offset of the animation.

Implementation

AnimatedPointConnection(
    {required super.start,
    required super.end,
    required super.id,
    super.label,
    super.labelTextStyle,
    super.isMoving,
    super.onTap,
    super.onHover,
    super.style,
    super.labelOffset,
    super.curveScale = 1.5,
    super.isLabelVisible,
    super.labelBuilder,
    this.animationProgress = 0.0,
    this.animationOffset = 0.0});