SliverPagingList<PageKey, Value>.separated constructor
const
SliverPagingList<PageKey, Value>.separated ({
- 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,
- required IndexedWidgetBuilder separatorBuilder,
- bool autoLoadAppend = true,
- 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;