getContent method Null safety
Returns possibly the header and the body.
Implementation
List<Widget> getContent({
final bool withHeader = true,
final bool withBody = true,
}) {
final List<Widget> result = <Widget>[];
if (withHeader) {
result.add(getHeader());
}
if (withBody) {
result.addAll(getBody());
}
return result;
}