SliverPagingList<PageKey, Value> constructor

const SliverPagingList<PageKey, Value>({
  1. Key? key,
  2. required DataSource<PageKey, Value> dataSource,
  3. required TypedWidgetBuilder<Value> builder,
  4. ExceptionWidgetBuilder? errorBuilder,
  5. Widget? initialLoadingWidget,
  6. Widget? prependLoadingWidget,
  7. Widget? appendLoadingWidget,
  8. Widget? emptyWidget,
  9. bool fillRemainErrorWidget = true,
  10. bool fillRemainEmptyWidget = true,
  11. EdgeInsets padding = EdgeInsets.zero,
  12. bool autoLoadAppend = true,
  13. 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;