VisiblePoint constructor

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

Creates a new instance of VisiblePoint.

id is the unique identifier of the visible point. position is the position of the visible point. size is the size of the widget to render. isHovering indicates whether the visible point is being hovered over. isVisible indicates whether the visible point is currently visible.

Example usage:

VisiblePoint(
 id: 'point1',
position: Offset(100, 100),
isHovering: false,
isVisible: true,
);

Implementation

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