AntdScrollPositionedBase<T, Style extends AntdStyle, WidgetType, Controller extends AntdScrollPositionController<T> > constructor
const
AntdScrollPositionedBase<T, Style extends AntdStyle, WidgetType, Controller extends AntdScrollPositionController<T> > ({
- Key? key,
- Style? style,
- AntdStyleBuilder<
Style, WidgetType> ? styleBuilder, - Controller? controller,
- bool vertical = true,
- bool reversed = false,
- ScrollPhysics? physics = const BouncingScrollPhysics(),
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollBehavior? scrollBehavior,
- double cacheExtent = 1.5,
- CacheExtentStyle cacheExtentStyle = CacheExtentStyle.viewport,
- Duration? throttle,
- bool? shrinkWrap,
- double? edgeThreshold,
- AntdOnScrollEdge? onEdgeReached,
- List<
Widget> ? headers, - List<
T> items = const [], - AntdScrollItemBuilder<
T, Controller> ? itemBuilder, - bool virtual = false,
- AntdScrollItemFit fit = AntdScrollItemFit.child,
- AntdEdge? alignment,
- AntdItemPositionListener<
T> ? onItemPosition, - SliverGridDelegate? gridDelegate,
- double? viewportOffset,
Implementation
const AntdScrollPositionedBase(
{super.key,
super.style,
super.styleBuilder,
super.controller,
super.vertical = true,
super.reversed,
super.physics = const BouncingScrollPhysics(),
super.dragStartBehavior = DragStartBehavior.start,
super.scrollBehavior,
super.cacheExtent = 1.5,
super.cacheExtentStyle = CacheExtentStyle.viewport,
super.throttle,
super.shrinkWrap,
super.edgeThreshold,
super.onEdgeReached,
this.headers,
this.footers,
this.items = const [],
this.itemBuilder,
this.virtual = false,
this.fit = AntdScrollItemFit.child,
this.alignment,
this.onItemPosition,
this.gridDelegate,
this.viewportOffset});