OptimusExpansionTile constructor

const OptimusExpansionTile({
  1. Key? key,
  2. Widget? leading,
  3. required Widget title,
  4. Widget? subtitle,
  5. Color? backgroundColor,
  6. ValueChanged<bool>? onExpansionChanged,
  7. List<Widget> children = const <Widget>[],
  8. Widget? trailing,
  9. bool initiallyExpanded = false,
  10. bool hasBorders = true,
  11. double actionsWidth = 0,
  12. List<Widget> slidableActions = const <Widget>[],
  13. EdgeInsets? contentPadding,
})

Creates a single-line OptimusListTile 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 OptimusExpansionTile({
  super.key,
  this.leading,
  required this.title,
  this.subtitle,
  this.backgroundColor,
  this.onExpansionChanged,
  this.children = const <Widget>[],
  this.trailing,
  this.initiallyExpanded = false,
  this.hasBorders = true,
  this.actionsWidth = 0,
  this.slidableActions = const <Widget>[],
  this.contentPadding,
});