setLayoutSize method
Sets both layout axes at the same time, and consequently, sets the size in one go. If you intend to only selectively set one axis length at a time, use setLayoutAxisLength.
This is not equivalent to calling setLayoutAxisLength for both axes. Doing so would result size listeners being called twice: once for the x axis, and again for the y axis.
Implementation
void setLayoutSize(double? layoutSizeX, double? layoutSizeY) {
_layoutSizeX = layoutSizeX;
_layoutSizeY = layoutSizeY;
resetSize();
}