InfiniteListItem<I>.overlay constructor

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

List item constructor with overlayed header positioning

Implementation

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