VisibilityInfo constructor
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,
});