HugeListView<T> constructor

const HugeListView<T>({
  1. Key? key,
  2. @Deprecated('Use `scrollController` instead.') ItemScrollController? controller,
  3. ItemScrollController? scrollController,
  4. HugeListViewController? listViewController,
  5. required int pageSize,
  6. required int startIndex,
  7. @Deprecated('Use `totalItemCount` of the `listViewController` instead.') int? totalCount,
  8. required HugeListViewPageFuture<T> pageFuture,
  9. required ScrollThumbBuilder thumbBuilder,
  10. required HugeListViewItemBuilder<T> itemBuilder,
  11. required IndexedWidgetBuilder placeholderBuilder,
  12. WidgetBuilder? waitBuilder,
  13. @Deprecated('Use `emptyBuilder` instead.') WidgetBuilder? emptyResultBuilder,
  14. WidgetBuilder? emptyBuilder,
  15. HugeListViewErrorBuilder? errorBuilder,
  16. double velocityThreshold = 128,
  17. ValueChanged<int>? firstShown,
  18. Axis scrollDirection = Axis.vertical,
  19. Color thumbBackgroundColor = Colors.white,
  20. Color thumbDrawColor = Colors.grey,
  21. double thumbHeight = 48.0,
  22. bool alwaysVisibleThumb = true,
  23. Duration thumbAnimationDuration = kThemeAnimationDuration,
  24. Duration thumbVisibleDuration = const Duration(milliseconds: 1000),
  25. EdgeInsets? padding,
  26. LruMap<int, HugeListViewPageResult<T>>? lruMap,
})

Implementation

const HugeListView({
  Key? key,
  @Deprecated('Use `scrollController` instead.') this.controller,
  this.scrollController,
  this.listViewController,
  required this.pageSize,
  required this.startIndex,
  @Deprecated('Use `totalItemCount` of the `listViewController` instead.')
  this.totalCount,
  required this.pageFuture,
  required this.thumbBuilder,
  required this.itemBuilder,
  required this.placeholderBuilder,
  this.waitBuilder,
  @Deprecated('Use `emptyBuilder` instead.') this.emptyResultBuilder,
  this.emptyBuilder,
  this.errorBuilder,
  this.velocityThreshold = 128,
  this.firstShown,
  this.scrollDirection = Axis.vertical,
  this.thumbBackgroundColor = Colors.white,
  this.thumbDrawColor = Colors.grey,
  this.thumbHeight = 48.0,
  this.alwaysVisibleThumb = true,
  this.thumbAnimationDuration = kThemeAnimationDuration,
  this.thumbVisibleDuration = const Duration(milliseconds: 1000),
  this.padding,
  this.lruMap,
})  : assert(pageSize > 0),
      assert(velocityThreshold >= 0),
      super(key: key);