RenderSliverElementChildManager class

An implementation of RenderSliverBoxChildManager for sliver, manage element to implement lifecycles for sliver list, generate renderer from existing element tree.

Implemented types

Properties

childCount int
Called to obtain a precise measure of the total number of children.
no setteroverride
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.
override
debugAssertChildListLocked() bool
In debug mode, asserts that this manager is not expecting any modifications to the RenderSliverMultiBoxAdaptor's child list.
override
didAdoptChild(RenderBox child) → void
Called during RenderSliverMultiBoxAdaptor.adoptChild or RenderSliverMultiBoxAdaptor.move.
override
didFinishLayout() → void
Called at the end of layout to indicate that layout is now complete.
override
didStartLayout() → void
Called at the beginning of layout to indicate that layout is about to occur.
override
estimateMaxScrollOffset(SliverConstraints constraints, {int? firstIndex, int? lastIndex, double? leadingScrollOffset, double? trailingScrollOffset}) double
Called to estimate the total scrollable extents of this object.
override
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.
override
restorePreparedChild(int index) → void
setDidUnderflow(bool value) → void
Called during layout to indicate whether this object provided insufficient children for the RenderSliverMultiBoxAdaptor to fill the SliverConstraints.remainingPaintExtent.
override
setupSliverListLayout(RenderSliverListLayout layout) → void
stashPreparedChild(int index) → void
toString() String
A string representation of this object.
inherited

Operators

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