OptimusExpansionTile constructor
const
OptimusExpansionTile({
- Key? key,
- Widget? leading,
- required Widget title,
- Widget? subtitle,
- Color? backgroundColor,
- ValueChanged<
bool> ? onExpansionChanged, - List<
Widget> children = const <Widget>[], - Widget? trailing,
- bool initiallyExpanded = false,
- bool hasBorders = true,
- double actionsWidth = 0,
- List<
Widget> slidableActions = const <Widget>[], - 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,
});