LayoutDecision class

Represents a single layout decision made by a RenderBox.

Captured automatically by ExplainableRenderBox mixin on every performLayout() call. Only recorded in debug builds (assert-guarded).

Constructors

LayoutDecision({required String widgetType, required BoxConstraints constraintsReceived, required Size sizeReported, required bool overflowed, required DateTime timestamp, String? causalEventId})
const

Properties

causalEventId String?
Linked event ID in the TrinityEventBus, if available.
final
constraintsReceived BoxConstraints
The BoxConstraints received from the parent.
final
hashCode int
The hash code for this object.
no setterinherited
overflowed bool
Whether the child requested more space than parent allowed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sizeReported Size
The Size reported by `RenderBox.size` after layout.
final
timestamp DateTime
When this layout decision was recorded.
final
widgetType String
The widget type name (e.g. 'RenderFlex', 'RenderParagraph').
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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