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