PageableListView<T> constructor

const PageableListView<T>({
  1. Key? key,
  2. required PageableListViewController<T> controller,
  3. required Future<void> onRefresh(),
  4. Future<void> onFetchNextPage()?,
  5. required Widget itemBuilder(
    1. BuildContext,
    2. int,
    3. PageableListViewItemData<T>
    ),
  6. List<Widget>? loadingWidget,
  7. List<Widget>? errorWidget,
  8. List<Widget>? emptyWidget,
  9. bool shrinkWrap = false,
  10. bool stickToTopWidget = false,
  11. List<Widget> builderbottomWidget(
    1. BuildContext
    )?,
  12. List<Widget> buildertopWidget(
    1. BuildContext
    )?,
  13. Widget loadingNextPageBuilder(
    1. BuildContext,
    2. int
    )?,
  14. bool stickToBottomWidget = false,
  15. double stickToBottomWidgetPaddingBottom = 0,
  16. double stickToTopWidgetPaddingTop = 0,
  17. bool enabledControllerAutoDispose = false,
  18. bool stickToBottomLoadingNextPageBuilder = true,
  19. Widget widgetBuilderFirstOnGroupItem(
    1. BuildContext,
    2. int,
    3. PageableListViewItemDataGroup
    )?,
  20. Widget widgetBuilderLastOnGroupItem(
    1. BuildContext,
    2. int,
    3. PageableListViewItemDataGroup
    )?,
})

Implementation

const PageableListView({
  super.key,
  required this.controller,
  required this.onRefresh,
  this.onFetchNextPage,
  required this.itemBuilder,
  this.loadingWidget,
  this.errorWidget,
  this.emptyWidget,
  this.shrinkWrap = false,
  this.stickToTopWidget = false,
  this.builderbottomWidget,
  this.buildertopWidget,
  this.loadingNextPageBuilder,
  this.stickToBottomWidget = false,
  this.stickToBottomWidgetPaddingBottom = 0,
  this.stickToTopWidgetPaddingTop = 0,
  this.enabledControllerAutoDispose = false,
  this.stickToBottomLoadingNextPageBuilder = true,
  this.widgetBuilderFirstOnGroupItem,
  this.widgetBuilderLastOnGroupItem,
});