syncChildSize method

void syncChildSize()

Implementation

void syncChildSize() {
  if (!inflateChild) {
    return;
  }
  final child = this.child;
  if (child == null) {
    return;
  }
  if (child.size == availableSize) {
    return;
  }
  if (child is LayoutComponent) {
    child.setLayoutSize(availableSize.x, availableSize.y);
  } else {
    child.size = availableSize;
  }
}