ProgrammaticExpansionTile constructor

const ProgrammaticExpansionTile({
  1. required Key key,
  2. required Key listKey,
  3. Widget? leading,
  4. required Widget? title,
  5. Widget? subtitle,
  6. bool isThreeLine = false,
  7. Color? backgroundColor,
  8. ValueChanged<bool>? onExpansionChanged,
  9. List<Widget?> children = const <Widget>[],
  10. Widget? trailing,
  11. bool initiallyExpanded = false,
  12. 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);