ExpansionBarSection constructor

ExpansionBarSection({
  1. Key? key,
  2. BarBackButtonMode backButton = BarBackButtonMode.never,
  3. Widget? title,
  4. required Widget sliver,
  5. Widget? subtitle,
  6. Widget? header,
  7. String? titleText,
  8. String? subtitleText,
  9. String? headerText,
  10. List<Widget> leading = const [],
  11. List<Widget> trailing = const [],
  12. bool initiallyExpanded = true,
})

Initializes an ExpansionBarSection with optional title, subtitle, and header elements, along with text fallbacks and leading/trailing widgets.

The sliver is the required content body. backButton controls navigation behavior, defaulting to never showing. initiallyExpanded sets the starting state (default true). Leading and trailing lists allow custom icons or actions, with trailing dynamically including an expand/collapse chevron based on sidebar expansion from ArcaneTheme.

Implementation

ExpansionBarSection(
    {super.key,
    this.backButton = BarBackButtonMode.never,
    this.title,
    required this.sliver,
    this.subtitle,
    this.header,
    this.titleText,
    this.subtitleText,
    this.headerText,
    this.leading = const [],
    this.trailing = const [],
    this.initiallyExpanded = true});