layoutChildren method
Sets the size of this LayoutComponent, then lays out the children along both main and cross axes.
Implementation
@override
void layoutChildren() {
final child = this.child;
if (child == null) {
return;
}
// Regardless of shrinkwrap or size, top left padding is set.
child.topLeftPosition.setFrom(padding.topLeft.toVector2());
if (!shrinkWrapMode) {
throw Exception(
// ignore: lines_longer_than_80_chars
'Unexpected state: PaddingComponent should always be in shrinkWrapMode.',
);
}
size.setFrom(inherentSize);
}