InfiniteListItem<I> constructor

const InfiniteListItem<I>({
  1. required ContentBuilder contentBuilder,
  2. HeaderBuilder? headerBuilder,
  3. HeaderStateBuilder<I>? headerStateBuilder,
  4. MinOffsetProvider<I>? minOffsetProvider,
  5. HeaderMainAxisAlignment mainAxisAlignment = HeaderMainAxisAlignment.start,
  6. HeaderCrossAxisAlignment crossAxisAlignment = HeaderCrossAxisAlignment.start,
  7. HeaderPositionAxis positionAxis = HeaderPositionAxis.mainAxis,
  8. EdgeInsets? padding,
})

Default list item constructor with relative header positioning

Implementation

const InfiniteListItem({
  required this.contentBuilder,
  this.headerBuilder,
  this.headerStateBuilder,
  this.minOffsetProvider,
  this.mainAxisAlignment = HeaderMainAxisAlignment.start,
  this.crossAxisAlignment = HeaderCrossAxisAlignment.start,
  this.positionAxis = HeaderPositionAxis.mainAxis,
  this.padding,
})  : overlayContent = false,
      initialHeaderBuild = true;