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,
- FormItemConfig? 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) {
themeData ??= FormItemConfig();
themeData = BaseThemeConfig.instance
.getConfig(configId: themeData!.configId)
.formItemConfig
.merge(themeData);
themeData =
themeData!.merge(FormItemConfig(backgroundColor: backgroundColor));
}