ExpansionTile constructor

const ExpansionTile({
  1. Key? key,
  2. required Widget title,
  3. Widget? subtitle,
  4. Widget? leading,
  5. Widget? trailing,
  6. List<Widget> children = const <Widget>[],
  7. bool initiallyExpanded = false,
  8. ValueChanged<bool>? onExpansionChanged,
  9. Color? background,
  10. Color? expandedBackground,
  11. Color? iconColor,
  12. Color? textColor,
  13. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: AppSpacing.md, vertical: 4),
  14. 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,
});