getContent method Null safety

List getContent(
  1. {bool withHeader = true,
  2. bool withBody = true}
)

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;
}