Section.divide constructor Null safety

Section.divide(
  1. {Key? key,
  2. Widget? header,
  3. Widget? footer,
  4. required List<Widget> children,
  5. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  6. EdgeInsetsGeometry? margin,
  7. double? elevation,
  8. Color? dividerColor,
  9. ShapeBorder? shape}
)

Implementation

factory Section.divide({
  Key? key,
  Widget? header,
  Widget? footer,
  required List<Widget> children,
  CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  EdgeInsetsGeometry? margin,
  double? elevation,
  Color? dividerColor,
  ShapeBorder? shape,
}) {
  return Section(
    children: children,
    crossAxisAlignment: crossAxisAlignment,
    divide: true,
    dividerColor: dividerColor,
    elevation: elevation,
    footer: footer,
    header: header,
    key: key,
    margin: margin,
    shape: shape,
  );
}