VisibleConnection constructor

VisibleConnection({
  1. required GlobalKey<State<StatefulWidget>> key,
  2. required String id,
  3. Size? size,
  4. Offset? position,
  5. required bool isHovering,
  6. required bool isVisible,
})

Creates a new instance of VisibleConnection.

id is the unique identifier of the visible connection. position is the position of the visible connection. isHovering indicates whether the visible connection is being hovered over. isVisible indicates whether the visible connection is currently visible.

Example usage:

VisibleConnection(
id: 'connection1',
position: Offset(100, 100),
isHovering: false,
isVisible: true,
);

Implementation

VisibleConnection({
  required this.key,
  required this.id,
  this.size,
  this.position,
  required this.isHovering,
  required this.isVisible,
});