body()
The encapsulated view object, an attached view.
protected get body(): View | undefined;
Notes
- By default, this getter property always returns
undefined. When using Widget.builder(), this property is overridden to expose a view object created from the provided view builder. - Alternatively, you can implement this property using a getter that returns a View. Typically, the view is created using a view builder which is cached for all instances of the widget.
Related
class Widget
A base class that represents a reusable UI component with encapsulated state.
