BarSection.expandable constructor
const
BarSection.expandable({})
Creates an expandable BarSection that delegates to ExpansionBarSection.
This named constructor sets expandable to true and initializes with the
provided parameters, enabling collapsible behavior with initiallyExpanded
state (default true) for dynamic content visibility in interactive UIs.
Implementation
const BarSection.expandable(
{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.initiallyExpanded = true,
this.trailing = const []})
: expandable = true;