FlexChildLayoutCache class

Cache for storing computed layout values for individual flex children.

FlexChildLayoutCache extends the base ChildLayoutCache with flex-specific caching for basis sizes, flex calculations, cross-axis sizing, and baseline alignment. This cache is used to avoid redundant calculations during the complex flex layout algorithm.

Inheritance

Constructors

FlexChildLayoutCache.new()
Creates a new cache for a flex child.

Properties

alignSelfNeedsBaseline bool?
Whether this child's alignSelf setting requires baseline calculation.
getter/setter pair
baseline double?
The baseline position for this child (if applicable).
getter/setter pair
cachedAutoSize LayoutSize?
Cached size when the child uses auto-sizing behavior.
getter/setter pairinherited
cachedFitContentSize LayoutSize?
Cached size when the child is sized to fit its content.
getter/setter pairinherited
crossSize double?
The cross-axis size for this child.
getter/setter pair
frozen bool
Whether this child's main-axis size is frozen (cannot be changed).
getter/setter pair
frozenCross bool
Whether this child's cross-axis size is frozen.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
index int
getter/setter pairinherited
lineCache FlexLineLayoutCache?
Cache for the flex line this child belongs to.
getter/setter pair
mainBasisSize double?
The main-axis basis size for this child.
getter/setter pair
mainFlexSize double?
The final main-axis size after flex calculations.
getter/setter pair
maxCrossSize double?
Maximum cross-axis size constraint for this child.
getter/setter pair
maxMainSize double?
Maximum main-axis size constraint for this child.
getter/setter pair
minCrossSize double?
Minimum cross-axis size constraint for this child.
getter/setter pair
minMainSize double?
Minimum main-axis size constraint for this child.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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