CenterPagingList<PageKey, Value> constructor
const
CenterPagingList<PageKey, Value> ({
- Key? key,
- required CenterDataSource<
PageKey, Value> dataSource, - required TypedWidgetBuilder<
Value> builder, - ExceptionWidgetBuilder? errorBuilder,
- Widget? initialLoadingWidget,
- Widget? emptyWidget,
- required Widget prependLoadStateBuilder(
- BuildContext context,
- bool hasMore,
- bool isLoading
- required Widget appendLoadStateBuilder(
- BuildContext context,
- bool hasMore,
- bool isLoading
- EdgeInsets padding = EdgeInsets.zero,
- bool autoLoadPrepend = true,
- bool autoLoadAppend = true,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- ScrollBehavior? scrollBehavior,
- bool shrinkWrap = false,
- ScrollCacheExtent? scrollCacheExtent,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- Clip clipBehavior = Clip.hardEdge,
Creates a CenterPagingList.
Implementation
const CenterPagingList({
super.key,
required this.dataSource,
required this.builder,
this.errorBuilder,
this.initialLoadingWidget,
this.emptyWidget,
required this.prependLoadStateBuilder,
required this.appendLoadStateBuilder,
this.padding = EdgeInsets.zero,
this.autoLoadPrepend = true,
this.autoLoadAppend = true,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.controller,
this.primary,
this.physics,
this.scrollBehavior,
this.shrinkWrap = false,
this.scrollCacheExtent,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.clipBehavior = Clip.hardEdge,
}) : _separatorBuilder = null;