ZdsExpansionTile.selectable constructor

const ZdsExpansionTile.selectable(
  1. {Key? key,
  2. required Widget title,
  3. required Widget child,
  4. Widget? subtitle,
  5. Widget? bottom,
  6. bool initiallyExpanded = false,
  7. bool maintainState = true,
  8. EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 24, vertical: 2),
  9. EdgeInsets titlePadding = const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
  10. VoidCallback? onExpanded,
  11. VoidCallback? onCollapse,
  12. VoidCallback? onCollapsed,
  13. bool selected = false,
  14. void onSelected(
    1. bool
    )?,
  15. bool showDivider = true,
  16. bool expandWithIconOnly = false,
  17. bool hideExpansionSemantics = false,
  18. bool isExpandable = true,
  19. Color titleColor = Colors.transparent}
)

A selectable tile that can be expanded and collapsed to reveal further information.

Implementation

const ZdsExpansionTile.selectable({
  super.key,
  required this.title,
  required this.child,
  this.subtitle,
  this.bottom,
  this.initiallyExpanded = false,
  this.maintainState = true,
  this.contentPadding = const EdgeInsets.symmetric(horizontal: 24, vertical: 2),
  this.titlePadding = const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
  this.onExpanded,
  this.onCollapse,
  this.onCollapsed,
  this.selected = false,
  this.onSelected,
  this.showDivider = true,
  this.expandWithIconOnly = false,
  this.hideExpansionSemantics = false,
  this.isExpandable = true,
  this.titleColor = Colors.transparent,
}) : expansionTileType = ExpansionTileType.selectable;