buildScrollView method

  1. @override
Widget buildScrollView(
  1. BuildContext context,
  2. dynamic scrollables,
  3. Widget? headerSliver,
  4. PlatformLayoutInfo layoutInfo, {
  5. bool shrinkWrap = false,
})
override

Implementation

@override
Widget buildScrollView(BuildContext context, dynamic scrollables,
    Widget? headerSliver, PlatformLayoutInfo layoutInfo,
    {bool shrinkWrap = false}) {
  return CustomScrollView(
    controller: widget.scroller,
    shrinkWrap: shrinkWrap,
    slivers: [
      if (headerSliver != null) headerSliver,
      ...scrollables,
    ],
  );
}