StickyListItem<I>.overlay constructor
StickyListItem<I>.overlay ({
- required Widget header,
- required Widget content,
- required I itemIndex,
- MinOffsetProvider<
I> ? minOffsetProvider, - StreamSink<
StickyState< ? streamSink,I> > - HeaderMainAxisAlignment mainAxisAlignment = HeaderMainAxisAlignment.start,
- HeaderCrossAxisAlignment crossAxisAlignment = HeaderCrossAxisAlignment.start,
- Clip clipBehavior = Clip.hardEdge,
- Key? key,
Default sticky item constructor with overlayed header positioning.
Header position axis in this case will be against main axis always.
Implementation
StickyListItem.overlay({
required Widget header,
required Widget content,
required this.itemIndex,
this.minOffsetProvider,
this.streamSink,
this.mainAxisAlignment = HeaderMainAxisAlignment.start,
this.crossAxisAlignment = HeaderCrossAxisAlignment.start,
Clip clipBehavior: Clip.hardEdge,
Key? key,
}) : overlayContent = true,
positionAxis = HeaderPositionAxis.mainAxis,
super(
key: key,
children: [content, header],
clipBehavior: clipBehavior,
);