view method

  1. @override
Object view()
override

Renders the widget to a string or View.

Use layout widgets like Row and Column to compose child views.

Implementation

@override
Object view() {
  final content = child == null ? '' : _renderWidget(child!);
  final width = constraints.hasBoundedWidth
      ? constraints.maxWidth.toInt()
      : null;
  final height = constraints.hasBoundedHeight
      ? constraints.maxHeight.toInt()
      : null;
  return _constrainContent(content, width: width, height: height);
}