HugeListView<T> constructor
const
HugeListView<T> ({
- Key? key,
- @Deprecated('Use `scrollController` instead.') ItemScrollController? controller,
- ItemScrollController? scrollController,
- HugeListViewController? listViewController,
- required int pageSize,
- required int startIndex,
- @Deprecated('Use `totalItemCount` of the `listViewController` instead.') int? totalCount,
- required HugeListViewPageFuture<
T> pageFuture, - required ScrollThumbBuilder thumbBuilder,
- required HugeListViewItemBuilder<
T> itemBuilder, - required IndexedWidgetBuilder placeholderBuilder,
- WidgetBuilder? waitBuilder,
- @Deprecated('Use `emptyBuilder` instead.') WidgetBuilder? emptyResultBuilder,
- WidgetBuilder? emptyBuilder,
- HugeListViewErrorBuilder? errorBuilder,
- double velocityThreshold = 128,
- ValueChanged<
int> ? firstShown, - Axis scrollDirection = Axis.vertical,
- Color thumbBackgroundColor = Colors.white,
- Color thumbDrawColor = Colors.grey,
- double thumbHeight = 48.0,
- bool alwaysVisibleThumb = true,
- Duration thumbAnimationDuration = kThemeAnimationDuration,
- Duration thumbVisibleDuration = const Duration(milliseconds: 1000),
- EdgeInsets? padding,
- LruMap<
int, HugeListViewPageResult< ? lruMap,T> >
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);