LayoutNode class abstract

Constructors

LayoutNode()

Properties

baselineFunction BaselineFunction?
Provide a function for measuring the baseline (in Y) of the contents of the node. The layout engine uses this when the alignment is set to baseline. Only works on leaf nodes (nodes with no further child layout nodes).
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
layout Layout
no setter
measureFunction MeasureFunction?
Provide a function for measuring the desired dimensions of the LayoutNode. This lets the layout engine know the intrinsic size of the contents. This doesn't guarantee the final size of the node will match but lets the layout attempt to provide the desired size when possible. Only works on leaf nodes (nodes with no further child layout nodes).
getter/setter pair
nodeType LayoutNodeType
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

calculateLayout(double availableWidth, double availableHeight, LayoutDirection direction) → void
checkAndResetUpdated() bool
Returns true if an update is necessary, and also lowers the flag.
clearChildren() → void
dispose() → void
insertChild(LayoutNode node, int index) → void
markDirty() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeChild(LayoutNode node) → void
setStyle(LayoutStyle style) → void
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromExternal(dynamic ref) LayoutNode
make() LayoutNode