ProgrammaticExpansionTile constructor
const
ProgrammaticExpansionTile({
- required Key key,
- required Key listKey,
- Widget? leading,
- required Widget? title,
- Widget? subtitle,
- bool isThreeLine = false,
- Color? backgroundColor,
- ValueChanged<
bool> ? onExpansionChanged, - List<
Widget?> children = const <Widget>[], - Widget? trailing,
- bool initiallyExpanded = false,
- bool disableTopAndBottomBorders = false,
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 ProgrammaticExpansionTile({
required Key key,
required this.listKey,
this.leading,
required this.title,
this.subtitle,
this.isThreeLine = false,
this.backgroundColor,
this.onExpansionChanged,
this.children = const <Widget>[],
this.trailing,
this.initiallyExpanded = false,
this.disableTopAndBottomBorders = false,
}) : super(key: key);