Section constructor Null safety

Section(
  1. {Key? key,
  2. Widget? header,
  3. required List<Widget> children,
  4. Widget? footer,
  5. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  6. EdgeInsetsGeometry? margin,
  7. double? elevation,
  8. Color? dividerColor,
  9. bool divide = false,
  10. ShapeBorder? shape = const RoundedRectangleBorder(side: BorderSide(color: Colors.black26, width: 1), borderRadius: BorderRadius.zero)}
)

Implementation

Section({
  Key? key,
  this.header,
  required this.children,
  this.footer,
  this.crossAxisAlignment = CrossAxisAlignment.start,
  EdgeInsetsGeometry? margin,
  this.elevation,
  this.dividerColor,
  this.divide = false,
  this.shape = const RoundedRectangleBorder(
    side: BorderSide(color: Colors.black26, width: 1),
    borderRadius: BorderRadius.zero,
  ),
}) : super(key: key) {
  this.margin = margin ?? EdgeInsets.fromLTRB(0, 0, 0, DEFAULT_CONTENT_PADDING);
  // this.contentPadding = headerPadding ?? EdgeInsets.fromLTRB(0, 0, 0, DEFAULT_CONTENT_PADDING);
}