NodeProcessor class
This class is used to process nodes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Properties
Static Methods
-
calculateGlobalRotatedBoxTopLeft(
String id, {bool unrotate = true, required NodeBoundaryType boundaryType, bool updatingSortedNodeList = false}) → Vec -
unrotate
will unrotate the top-left corner of the rotated box to the top-left corner of the bounding box. -
calculateSortedGlobalRotatedBoxTopLeft(
String id, {bool unrotate = true, required NodeBoundaryType boundaryType}) → Vec -
unrotate
will unrotate the top-left corner of the rotated box to the top-left corner of the bounding box. -
registerNodeGetter(
GetNode getNode) → void -
This function is used to initialize the
getNode
function. -
resolveConstraints(
BaseNode node, {SizeFit? horizontalFit, SizeFit? verticalFit}) → BoxConstraintsModel -
There's the normal
constraints
field, but those constraints don't tell the full story of the provided node's true constraints. -
sortNodes(
List< BaseNode> nodes, {bool reversed = false}) → void - Sorted nodes is a list of nodes that go from parent -> child using a merge sort with memoization.
-
updateGlobalRotation(
{required BaseNode node, required int newRotationDegrees, bool updateChildren = true}) → void -
Update the global rotation for given
node
withnewRotationDegrees
. -
updateNode(
{required BaseNode node, EdgeInsetsModel? margin, EdgeInsetsModel? padding, AlignmentModel? alignment, OuterNodeBox? outerBoxLocal, OuterNodeBox? outerBoxGlobal, NodeBox? basicBoxLocal, BoxConstraintsModel? constraints, BoxConstraintsModel? resolvedConstraints, int? rotationDegrees, bool resetRetainedBox = true, bool recursivelyCalculateChildrenGlobalBoxes = true, Vec? globalParentBoundingBoxPos, bool updatingSortedNodeList = false}) → void -
updateNode is responsible for updating the node and its children when
one or more of its properties change. Ex. if
margin
is changed, all the node boxes and node's children are updated accordingly.