InfiniteListItem<I> class

List item build should return instance on this class

It can be overriden if needed

This class build item header and content

Constructors

InfiniteListItem({required ContentBuilder contentBuilder, HeaderBuilder? headerBuilder, HeaderStateBuilder<I>? headerStateBuilder, MinOffsetProvider<I>? minOffsetProvider, HeaderMainAxisAlignment mainAxisAlignment = HeaderMainAxisAlignment.start, HeaderCrossAxisAlignment crossAxisAlignment = HeaderCrossAxisAlignment.start, HeaderPositionAxis positionAxis = HeaderPositionAxis.mainAxis, EdgeInsets? padding})
Default list item constructor with relative header positioning
const
InfiniteListItem.overlay({required ContentBuilder contentBuilder, HeaderBuilder? headerBuilder, HeaderStateBuilder<I>? headerStateBuilder, MinOffsetProvider<I>? minOffsetProvider, bool initialHeaderBuild = false, HeaderMainAxisAlignment mainAxisAlignment = HeaderMainAxisAlignment.start, HeaderCrossAxisAlignment crossAxisAlignment = HeaderCrossAxisAlignment.start, EdgeInsets? padding})
List item constructor with overlayed header positioning
const

Properties

contentBuilder ContentBuilder
Content builder
final
crossAxisAlignment HeaderCrossAxisAlignment
Header alignment against cross axis direction
final
hashCode int
The hash code for this object.
no setterinherited
hasStickyHeader bool
Defines if list item has Header
no setter
headerBuilder HeaderBuilder?
Header builder
final
headerStateBuilder HeaderStateBuilder<I>?
Header builder based on StickyState
final
initialHeaderBuild bool
If builder should render header during first run
final
mainAxisAlignment HeaderMainAxisAlignment
Header alignment against main axis direction.
final
minOffsetProvider MinOffsetProvider<I>?
Function, that provides min offset.
final
overlayContent bool
If header should overlay content or not
final
padding EdgeInsets?
List item padding, see EdgeInsets for more info
final
positionAxis HeaderPositionAxis
Header position against scroll axis for relative positioned headers
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
watchStickyState bool
Defines if list item should watch header position state changes.
no setter

Methods

buildContent(BuildContext context) Widget
Content item builder
buildHeader(BuildContext context, [StickyState<I>? state]) Widget
Header item builder Receives BuildContext and StickyState
dispose() → void
Called whenever item is destroyed (see State.dispose lifecycle) If this method is override, dispose should called
initState() → void
Called during init state (see State.initState)
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited