ExpansionElementWidget constructor

ExpansionElementWidget({
  1. Key? key,
  2. String title = "",
  3. String? subtitle,
  4. Color? backgroundColor,
  5. ValueChanged<bool>? onExpansionChanged,
  6. List<Widget> children = const <Widget>[],
  7. bool initiallyExpanded = false,
  8. String? deleteText,
  9. VoidCallback? callback,
  10. 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));
}