SliverPagingList<PageKey, Value>.separated constructor

const SliverPagingList<PageKey, Value>.separated({
  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. required IndexedWidgetBuilder separatorBuilder,
  13. bool autoLoadAppend = true,
  14. bool autoLoadPrepend = true,
})

Creates a scrollable linear array of list "items" separated by list item "separators".

Implementation

const SliverPagingList.separated({
  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,
  required IndexedWidgetBuilder separatorBuilder,
  this.autoLoadAppend = true,
  this.autoLoadPrepend = true,
}) : _separatorBuilder = separatorBuilder;