ExpandableListTileButton.custom constructor
ExpandableListTileButton.custom({})
Creates an ExpandableListTileButton with a custom header.
The customHeader
builder function is used to create the header widget.
Example usage:
ExpandableListTileButton.custom(
expanded: Text('Expanded content here'),
customHeader: (toggleExpansion, isExpanded) => YourCustomHeaderWidget(),
);
Implementation
factory ExpandableListTileButton.custom({
required Widget expanded,
required Widget Function(Function tapAction, bool isExpanded) customHeader,
Color? backgroundColor,
Color? expandedColor,
Color? iconColor,
Color? trailingIconColor,
Color? borderColor,
double elevation = 4.0,
}) {
return ExpandableListTileButton(
expanded: expanded,
backgroundColor: backgroundColor,
expandedColor: expandedColor,
iconColor: iconColor,
trailingIconColor: trailingIconColor,
borderColor: borderColor,
elevation: elevation,
customHeader: customHeader,
);
}