ChildLayout mixin
Interface for child elements that participate in layout.
ChildLayout defines the contract that all layout participants must implement. It provides methods for layout calculation, sizing, positioning, and cache management. Layout algorithms use this interface to interact with children uniformly.
- Mixin applications
Properties
- debugKey → Object?
-
Debug key for identifying this child in debug output.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- layoutCache → ChildLayoutCache
-
The cache for storing computed layout results.
no setter
- layoutData → LayoutData
-
The layout data containing this child's layout properties.
no setter
- nextSibling → ChildLayout?
-
The next sibling in the layout tree.
no setter
- offset → LayoutOffset
-
The current offset (position) of this child after layout.
no setter
- previousSibling → ChildLayout?
-
The previous sibling in the layout tree.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → LayoutSize
-
The current size of this child after layout.
no setter
Methods
-
clearCache(
) → void - Clears all cached layout calculations.
-
dryLayout(
LayoutConstraints constraints) → LayoutSize - Performs a dry layout without modifying the child's state.
-
getDistanceToBaseline(
LayoutTextBaseline baseline) → double - Returns the distance from the top of this child to the specified baseline.
-
getMaxIntrinsicHeight(
double width) → double - Returns the maximum intrinsic height of this child at the given width.
-
getMaxIntrinsicWidth(
double height) → double - Returns the maximum intrinsic width of this child at the given height.
-
getMinIntrinsicHeight(
double width) → double - Returns the minimum intrinsic height of this child at the given width.
-
getMinIntrinsicWidth(
double height) → double - Returns the minimum intrinsic width of this child at the given height.
-
layout(
LayoutOffset offset, LayoutSize size, OverflowBounds overflowBounds) → void - Performs the actual layout of this child within the given constraints.
-
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