ZdsExpansionTile.selectable constructor
- {Key? key,
- required Widget title,
- required Widget child,
- Widget? subtitle,
- Widget? bottom,
- bool initiallyExpanded = false,
- bool maintainState = true,
- EdgeInsets contentPadding = const EdgeInsets.symmetric(horizontal: 24, vertical: 2),
- EdgeInsets titlePadding = const EdgeInsets.symmetric(horizontal: 24, vertical: 16),
- VoidCallback? onExpanded,
- VoidCallback? onCollapse,
- VoidCallback? onCollapsed,
- bool selected = false,
- void onSelected( )?,
- bool showDivider = true,
- bool expandWithIconOnly = false,
- bool hideExpansionSemantics = false,
- bool isExpandable = true,
- 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;