setLayoutSize method
Avoid using within layout logic. Instead, use setLayoutAxisLength, as it allows selective setting of vector components, and subsequently selective setting of the size components.
Implementation
void setLayoutSize(double? layoutSizeX, double? layoutSizeY) {
_layoutSizeX = layoutSizeX;
_layoutSizeY = layoutSizeY;
resetSize();
}