render method
Renders the elements of this component.
Accepted return types:
dart:html
UINode
andUIElement
.- DIVElement, DOMNode, AsDOMElement and AsDOMNode.
- Future.
- UIAsyncContent.
- String, parsed as
HTML
. - Map (rendered as JSON).
- List with previous types (recursively).
- Function that returns any previous type. Including Function
Implementation
@override
List render() {
if (isClosed) {
return [renderClosed()];
}
var menu = renderMenu();
var content = renderContent();
var footer = renderFooter();
return [
if (menu != null) menu,
if (content != null) content,
if (footer != null) footer,
];
}