RenderSliverVariableSizeBoxChildManager class abstract
A delegate used by RenderSliverVariableSizeBoxAdaptor to manage its children.
RenderSliverVariableSizeBoxAdaptor 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
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) → void - Called during layout when a new child is needed. The child should be inserted into the child list in the appropriate position. 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 RenderSliverVariableSizeBoxAdaptor's child list.
-
didAdoptChild(
RenderBox child) → void - Called during RenderSliverVariableSizeBoxAdaptor.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.
-
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 RenderSliverVariableSizeBoxAdaptor to fill the SliverConstraints.remainingPaintExtent.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited