StickyListItemRenderObject<I> constructor
StickyListItemRenderObject<I> ({
- required ScrollableState scrollable,
- required I itemIndex,
- MinOffsetProvider<
I> ? minOffsetProvider, - StreamSink<
StickyState< ? streamSink,I> > - TextDirection? textDirection,
- Clip clipBehavior = Clip.hardEdge,
- bool overlayContent = false,
- HeaderPositionAxis positionAxis = HeaderPositionAxis.mainAxis,
- HeaderMainAxisAlignment mainAxisAlignment = HeaderMainAxisAlignment.start,
- HeaderCrossAxisAlignment crossAxisAlignment = HeaderCrossAxisAlignment.start,
Implementation
StickyListItemRenderObject({
required ScrollableState scrollable,
required I itemIndex,
MinOffsetProvider<I>? minOffsetProvider,
StreamSink<StickyState<I>>? streamSink,
TextDirection? textDirection,
Clip clipBehavior = Clip.hardEdge,
bool overlayContent = false,
HeaderPositionAxis positionAxis = HeaderPositionAxis.mainAxis,
HeaderMainAxisAlignment mainAxisAlignment = HeaderMainAxisAlignment.start,
HeaderCrossAxisAlignment crossAxisAlignment =
HeaderCrossAxisAlignment.start,
}) : _scrollable = scrollable,
_streamSink = streamSink,
_itemIndex = itemIndex,
_minOffsetProvider = minOffsetProvider,
_overlayContent = overlayContent,
_positionAxis = positionAxis,
_mainAxisAlignment = mainAxisAlignment,
_crossAxisAlignment = crossAxisAlignment,
super(
alignment: _headerAlignment(
scrollable, mainAxisAlignment, crossAxisAlignment),
textDirection: textDirection,
fit: StackFit.loose,
clipBehavior: clipBehavior,
);