StickyListItemRenderObject<I> constructor

StickyListItemRenderObject<I>({
  1. required ScrollableState scrollable,
  2. required I itemIndex,
  3. MinOffsetProvider<I>? minOffsetProvider,
  4. StreamSink<StickyState<I>>? streamSink,
  5. TextDirection? textDirection,
  6. Clip clipBehavior = Clip.hardEdge,
  7. bool overlayContent = false,
  8. HeaderPositionAxis positionAxis = HeaderPositionAxis.mainAxis,
  9. HeaderMainAxisAlignment mainAxisAlignment = HeaderMainAxisAlignment.start,
  10. 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,
      );