RenderSliverVisibilityDetector constructor

RenderSliverVisibilityDetector({
  1. RenderSliver? sliver,
  2. required Key key,
  3. required VisibilityChangedCallback? onVisibilityChanged,
})

Constructor. See the corresponding properties for parameter details.

Implementation

RenderSliverVisibilityDetector({
  RenderSliver? sliver,
  required this.key,
  required VisibilityChangedCallback? onVisibilityChanged,
}) : super(sliver) {
  _onVisibilityChanged = onVisibilityChanged;
}