ExpansionTile constructor
const
ExpansionTile({
- Key? key,
- required Widget title,
- Widget? subtitle,
- Widget? leading,
- Widget? trailing,
- List<
Widget> children = const <Widget>[], - bool initiallyExpanded = false,
- ValueChanged<
bool> ? onExpansionChanged, - Color? background,
- Color? expandedBackground,
- Color? iconColor,
- Color? textColor,
- EdgeInsets padding = const EdgeInsets.symmetric(horizontal: AppSpacing.md, vertical: 4),
- bool showDivider = false,
Implementation
const ExpansionTile({
super.key,
required this.title,
this.subtitle,
this.leading,
this.trailing,
this.children = const <Widget>[],
this.initiallyExpanded = false,
this.onExpansionChanged,
this.background,
this.expandedBackground,
this.iconColor,
this.textColor,
this.padding =
const EdgeInsets.symmetric(horizontal: AppSpacing.md, vertical: 4),
this.showDivider = false,
});