CustomExpansionTile constructor
- {dynamic key,
- dynamic leading,
- @required dynamic title,
- dynamic subtitle,
- dynamic backgroundColor,
- dynamic onExpansionChanged,
- List children: const <Widget>[],
- dynamic trailing,
- bool initiallyExpanded: false,
- bool maintainState: false,
- dynamic tilePadding,
- dynamic expandedCrossAxisAlignment,
- dynamic expandedAlignment,
- dynamic childrenPadding}
Creates a single-line ListTile
with a trailing button that expands or collapses
the tile to reveal or hide the children
. The initiallyExpanded
property must
be non-null.
Implementation
const CustomExpansionTile({
Key key,
this.leading,
@required this.title,
this.subtitle,
this.backgroundColor,
this.onExpansionChanged,
this.children = const <Widget>[],
this.trailing,
this.initiallyExpanded = false,
this.maintainState = false,
this.tilePadding,
this.expandedCrossAxisAlignment,
this.expandedAlignment,
this.childrenPadding,
}) : assert(initiallyExpanded != null),
assert(maintainState != null),
assert(
expandedCrossAxisAlignment != CrossAxisAlignment.baseline,
'CrossAxisAlignment.baseline is not supported since the expanded children '
'are aligned in a column, not a row. Try to use another constant.',
),
super(key: key);