toSliverLayout method

Implementation

RenderSliverListLayout toSliverLayout(RenderSliverElementChildManager manager, ScrollListener? onScroll) {
  RenderSliverListLayout sliverListLayout = RenderSliverListLayout(
    renderStyle: renderStyle,
    manager: manager,
    onScroll: onScroll,
  );
  manager.setupSliverListLayout(sliverListLayout);
  copyWith(sliverListLayout);
  sliverListLayout.addAll(detachChildren());
  return sliverListLayout;
}