GroovinExpansionTile constructor
const
GroovinExpansionTile({
- Key? key,
- Widget? leading,
- required Widget title,
- Widget? subtitle,
- Color? backgroundColor,
- Color? defaultTrailingIconColor = Colors.grey,
- List<
Widget> children = const <Widget>[], - Widget? trailing,
- bool initiallyExpanded = false,
- bool maintainState = false,
- EdgeInsetsGeometry? tilePadding,
- CrossAxisAlignment? expandedCrossAxisAlignment,
- Alignment? expandedAlignment,
- EdgeInsetsGeometry? childrenPadding,
- Color? collapsedBackgroundColor,
- ValueChanged<
bool> ? onExpansionChanged, - BoxDecoration? boxDecoration,
- BorderRadius? inkwellRadius,
Creates a 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 GroovinExpansionTile({
Key? key,
this.leading,
required this.title,
this.subtitle,
this.backgroundColor,
this.defaultTrailingIconColor = Colors.grey,
this.children = const <Widget>[],
this.trailing,
this.initiallyExpanded = false,
this.maintainState = false,
this.tilePadding,
this.expandedCrossAxisAlignment,
this.expandedAlignment,
this.childrenPadding,
this.collapsedBackgroundColor,
this.onExpansionChanged,
this.boxDecoration,
this.inkwellRadius,
}) : 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);