SliverPagingList<PageKey, Value> constructor
const
SliverPagingList<PageKey, Value> ({
- Key? key,
- required DataSource<
PageKey, Value> dataSource, - required TypedWidgetBuilder<
Value> builder, - ExceptionWidgetBuilder? errorBuilder,
- Widget? initialLoadingWidget,
- Widget? prependLoadingWidget,
- Widget? appendLoadingWidget,
- Widget? emptyWidget,
- bool fillRemainErrorWidget = true,
- bool fillRemainEmptyWidget = true,
- EdgeInsets padding = EdgeInsets.zero,
- bool autoLoadAppend = true,
- bool autoLoadPrepend = true,
Creates a scrollable, linear array of widgets that are created on demand.
Implementation
const SliverPagingList({
super.key,
required this.dataSource,
required this.builder,
this.errorBuilder,
this.initialLoadingWidget,
this.prependLoadingWidget,
this.appendLoadingWidget,
this.emptyWidget,
this.fillRemainErrorWidget = true,
this.fillRemainEmptyWidget = true,
this.padding = EdgeInsets.zero,
this.autoLoadAppend = true,
this.autoLoadPrepend = true,
}) : _separatorBuilder = null;