MSection constructor

const MSection({
  1. Key? key,
  2. Widget? customHeader,
  3. bool initiallyExpanded = true,
  4. bool expandable = false,
  5. required PylonBuilder builder,
  6. BarBackButtonMode backButton = BarBackButtonMode.never,
  7. Widget? title,
  8. Widget? subtitle,
  9. Widget? header,
  10. String? titleText,
  11. String? subtitleText,
  12. String? headerText,
  13. List<Widget> leading = const [],
  14. List<Widget> trailing = const [],
  15. Color? backgroundColor,
})

Implementation

const MSection({
  super.key,
  this.customHeader,
  this.initiallyExpanded = true,
  this.expandable = false,
  required this.builder,
  this.backButton = BarBackButtonMode.never,
  this.title,
  this.subtitle,
  this.header,
  this.titleText,
  this.subtitleText,
  this.headerText,
  this.leading = const [],
  this.trailing = const [],
  this.backgroundColor,
});