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(56),
      left: percentW(12),
      right: percentW(12),
      height: percentH(actions == null ? 36 : 24),
      child: content,
    ),
    Positioned(
      bottom: percentW(12),
      left: percentW(14),
      right: percentW(14),
      child: actions ?? Container(),
    ),
  ];
}