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. 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));
}