RenderSliverBoxChildManager class

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. [...]
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createChild(int index, { 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. [...]
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. [...]
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. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited