BoxChildLayout class

Adapter that makes a Box compatible with the layout system.

BoxChildLayout implements the ChildLayout interface for Box objects, allowing boxes to participate as children in layout calculations. It provides the bridge between the box-based layout system and the generic layout algorithm interface.

Mixed-in types

Constructors

BoxChildLayout.new(Box box)

Properties

box Box
final
debugKey Object?
Debug key for identifying this child in debug output.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
layoutCache ChildLayoutCache
The cache for storing computed layout results.
no setteroverride
layoutData LayoutData
The layout data containing this child's layout properties.
no setteroverride
nextSibling ChildLayout?
The next sibling in the layout tree.
no setteroverride
offset LayoutOffset
The current offset (position) of this child after layout.
no setteroverride
previousSibling ChildLayout?
The previous sibling in the layout tree.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size LayoutSize
The current size of this child after layout.
no setteroverride

Methods

clearCache() → void
Clears all cached layout calculations.
override
dryLayout(LayoutConstraints constraints) LayoutSize
Performs a dry layout without modifying the child's state.
override
getDistanceToBaseline(LayoutTextBaseline baseline) double
Returns the distance from the top of this child to the specified baseline.
override
getMaxIntrinsicHeight(double width) double
Returns the maximum intrinsic height of this child at the given width.
override
getMaxIntrinsicWidth(double height) double
Returns the maximum intrinsic width of this child at the given height.
override
getMinIntrinsicHeight(double width) double
Returns the minimum intrinsic height of this child at the given width.
override
getMinIntrinsicWidth(double height) double
Returns the minimum intrinsic width of this child at the given height.
override
layout(LayoutOffset offset, LayoutSize size, OverflowBounds overflowBounds, {LayoutOffset? revealOffset}) → void
Performs the actual layout of this child within the given constraints.
override
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