SectionGroup<T> constructor Null safety

SectionGroup<T>(
  1. {Key? key,
  2. Widget? header,
  3. required T? groupValue,
  4. required ValueChanged<T?>? onChanged,
  5. required List<SectionGroupWidget> children,
  6. Widget? footer,
  7. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  8. EdgeInsets? margin,
  9. EdgeInsets? headerPadding,
  10. double? elevation,
  11. Color? dividerColor}
)

Implementation

SectionGroup({
  Key? key,
  this.header,
  required this.groupValue,
  required this.onChanged,
  required this.children,
  this.footer,
  this.crossAxisAlignment = CrossAxisAlignment.start,
  EdgeInsets? margin,
  EdgeInsets? headerPadding,
  this.elevation,
  this.dividerColor,
}) : 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);
}