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