layout property Null safety

List<Positioned> layout
override

Implementation

@override
get layout {
  return [
    Positioned(
      child: background,
    ),
    Positioned(
      top: percentH(46),
      child: title,
    ),
    Positioned(
      top: percentH(58),
      left: percentW(8),
      right: percentW(8),
      height: percentH(actions == null ? 40 : 24),
      child: content,
    ),
    Positioned(
      bottom: percentW(8),
      left: percentW(8),
      right: percentW(8),
      child: actions ?? Container(),
    ),
  ];
}