setLayoutSize method

void setLayoutSize(
  1. double? layoutSizeX,
  2. double? layoutSizeY
)

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();
}