view method
Renders the widget to a string or View.
Use layout widgets like Row and Column to compose child views.
Implementation
@override
Object view() {
final render = RenderStack(
width: width,
height: height,
alignment: alignment,
fit: fit,
clipBehavior: clipBehavior,
);
for (final child in children) {
final renderChild = RenderDelegateBox(() => _renderWidget(child));
final info = _stackInfoFor(child);
if (info != null) {
renderChild.parentData = info;
}
render.attach(renderChild);
}
render.layout(BoxConstraints());
return render.paint();
}