ExpansionElementWidget constructor
ExpansionElementWidget({
- Key? key,
- String title = "",
- String? subtitle,
- Color? backgroundColor,
- ValueChanged<
bool> ? onExpansionChanged, - List<
Widget> children = const <Widget>[], - bool initiallyExpanded = false,
- String? deleteText,
- VoidCallback? callback,
- SantoFormItemConfig? themeData,
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
ExpansionElementWidget({
Key? key,
this.title = "",
this.subtitle,
this.backgroundColor,
this.onExpansionChanged,
this.children = const <Widget>[],
this.initiallyExpanded = false,
this.deleteText,
this.callback,
this.themeData,
}) : super(key: key) {
this.themeData ??= SantoFormItemConfig();
this.themeData = SantoThemeConfigurator.instance
.getConfig(configId: this.themeData!.configId)
.formItemConfig
.merge(this.themeData);
this.themeData = this
.themeData!
.merge(SantoFormItemConfig(backgroundColor: backgroundColor));
}