SectionView constructor Null safety

SectionView(
  1. {Key? key,
  2. EdgeInsets? padding,
  3. required List<Widget> children,
  4. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.start,
  5. ScrollController? scrollController}
)

Implementation

SectionView({
  Key? key,
  EdgeInsets? padding,
  required this.children,
  this.crossAxisAlignment = CrossAxisAlignment.start,
  ScrollController? scrollController,
})  : controller = scrollController ?? ScrollController(),
      super(key: key) {
  this.padding = padding ?? EdgeInsets.zero;
}