applyConstraints method
Called to apply the constraints to the node. Normally, this method is called automatically by the SpriteBox, but it can be called manually if the constraints need to be applied immediately.
Implementation
void applyConstraints(double dt) {
if (_constraints == null) return;
for (Constraint constraint in _constraints!) {
constraint.constrain(this, dt);
}
}