GetListView constructor
const
GetListView({
- required GetSliverBuilder sliverBuilder,
- GetSliverBuilder? topSliverBuilder,
- GetSliverBuilder? bottomSliverBuilder,
- WidgetBuilder? replacementBuilder,
- bool replace = false,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics = const AlwaysBouncingScrollPhysics(),
- bool shrinkWrap = false,
- double? cacheExtent,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- Key? key,
Implementation
const GetListView({
required this.sliverBuilder,
this.topSliverBuilder,
this.bottomSliverBuilder,
this.replacementBuilder,
this.replace = false,
Axis scrollDirection = Axis.vertical,
bool reverse = false,
ScrollController? controller,
bool? primary,
ScrollPhysics? physics = const AlwaysBouncingScrollPhysics(),
bool shrinkWrap = false,
double? cacheExtent,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
ScrollViewKeyboardDismissBehavior.manual,
String? restorationId,
Clip clipBehavior = Clip.hardEdge,
Key? key,
}) : assert(sliverBuilder != null),
super(
key: key,
scrollDirection: scrollDirection,
reverse: reverse,
controller: controller,
primary: primary,
physics: physics,
shrinkWrap: shrinkWrap,
cacheExtent: cacheExtent,
dragStartBehavior: dragStartBehavior,
keyboardDismissBehavior: keyboardDismissBehavior,
restorationId: restorationId,
clipBehavior: clipBehavior,
);