VisibilityInfo constructor

const VisibilityInfo({
  1. required Key key,
  2. Size size = Size.zero,
  3. Rect visibleBounds = Rect.zero,
})

Constructor.

key corresponds to the Key used to construct the corresponding VisibilityDetector widget. Must not be null.

If size or visibleBounds are omitted, the VisibilityInfo will be initialized to Offset.zero or Rect.zero respectively. This will indicate that the corresponding widget is competely hidden.

Implementation

const VisibilityInfo({
  required this.key,
  this.size = Size.zero,
  this.visibleBounds = Rect.zero,
});