NextAccordion constructor

const NextAccordion({
  1. Key? key,
  2. Widget? leading,
  3. required Widget title,
  4. Widget? subtitle,
  5. ValueChanged<bool>? onExpansionChanged,
  6. List<Widget> children = const <Widget>[],
  7. Widget? trailing(
    1. bool isExpanded
    )?,
  8. bool initiallyExpanded = false,
  9. bool maintainState = false,
  10. EdgeInsetsGeometry? tilePadding,
  11. double? horizontalTitleGap,
  12. Color? borderColor,
  13. CrossAxisAlignment? expandedCrossAxisAlignment,
  14. Alignment? expandedAlignment,
  15. EdgeInsetsGeometry? childrenPadding,
  16. Color? backgroundColor,
  17. Color? collapsedBackgroundColor,
  18. Color? textColor,
  19. Color? collapsedTextColor,
  20. Color? iconColor,
  21. Color? collapsedIconColor,
  22. ListTileControlAffinity? controlAffinity,
})

Implementation

const NextAccordion({
  Key? key,
  this.leading,
  required this.title,
  this.subtitle,
  this.onExpansionChanged,
  this.children = const <Widget>[],
  this.trailing,
  this.initiallyExpanded = false,
  this.maintainState = false,
  this.tilePadding,
  this.horizontalTitleGap,
  this.borderColor,
  this.expandedCrossAxisAlignment,
  this.expandedAlignment,
  this.childrenPadding,
  this.backgroundColor,
  this.collapsedBackgroundColor,
  this.textColor,
  this.collapsedTextColor,
  this.iconColor,
  this.collapsedIconColor,
  this.controlAffinity,
})  : assert(
        expandedCrossAxisAlignment != CrossAxisAlignment.baseline,
        'CrossAxisAlignment.baseline is not supported since the expanded children '
        'are aligned in a column, not a row. Try to use another constant.',
      ),
      super(key: key);