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() {
if (children.isEmpty) return '';
final render = RenderWrap(
direction: direction,
alignment: alignment,
crossAxisAlignment: crossAxisAlignment,
spacing: spacing,
runSpacing: runSpacing,
);
for (final child in children) {
render.attach(RenderDelegateBox(() => _renderWidget(child)));
}
render.layout(BoxConstraints());
return render.paint();
}