layoutChildren method
The method to refresh the layout, triggered by various events. (e.g. onChildrenChanged, size changes on both this component and its children)
Override this method for any specific layout needs.
Implementation
@override
void layoutChildren() {
  // Only resets to null if it's already null. This way, we avoid overwriting
  // an explicit width/height.
  resetSize();
  final child = this.child;
  if (child == null) {
    return;
  }
  // Regardless of shrinkwrap or size, top left padding is set.
  child.topLeftPosition.setFrom(padding.topLeft.toVector2());
}