RenderSliverBoxChildManager class abstract

A delegate used by RenderSliverMultiBoxAdaptor to manage its children.

RenderSliverMultiBoxAdaptor objects reify their children lazily to avoid spending resources on children that are not visible in the viewport. This delegate lets these objects create and remove children as well as estimate the total scroll offset extent occupied by the full child list.

Implementers

Constructors

RenderSliverBoxChildManager()

Properties

childCount int
Called to obtain a precise measure of the total number of children.
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createChild(int index, {required RenderBox? after}) → void
Called during layout when a new child is needed. The child should be inserted into the child list in the appropriate position, after the after child (at the start of the list if after is null). Its index and scroll offsets will automatically be set appropriately.
debugAssertChildListLocked() bool
In debug mode, asserts that this manager is not expecting any modifications to the RenderSliverMultiBoxAdaptor's child list.
didAdoptChild(RenderBox child) → void
Called during RenderSliverMultiBoxAdaptor.adoptChild or RenderSliverMultiBoxAdaptor.move.
didFinishLayout() → void
Called at the end of layout to indicate that layout is now complete.
didStartLayout() → void
Called at the beginning of layout to indicate that layout is about to occur.
estimateMaxScrollOffset(SliverConstraints constraints, {int? firstIndex, int? lastIndex, double? leadingScrollOffset, double? trailingScrollOffset}) double
Called to estimate the total scrollable extents of this object.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChild(RenderBox child) → void
Remove the given child from the child list.
setDidUnderflow(bool value) → void
Called during layout to indicate whether this object provided insufficient children for the RenderSliverMultiBoxAdaptor to fill the SliverConstraints.remainingPaintExtent.
toString() String
A string representation of this object.
inherited

Operators

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