ExpansionList<T> constructor

ExpansionList<T>({
  1. Key? key,
  2. List<T>? items,
  3. String? title,
  4. @required dynamic onItemSelected(
    1. T
    )?,
  5. bool smallVersion = false,
  6. MainAxisAlignment? childrenAlignment,
  7. MainAxisAlignment? titleAlignment,
  8. Icon? icon,
  9. Icon? childrenTrailingIcon,
  10. Icon? childrenLeadingIcon,
  11. double height = 40,
  12. Color? dividerColor,
  13. TextStyle? textStyle,
  14. Color? backgroundColor,
  15. Color? collapseBackgroundColor,
  16. double? spacingBtwTextAndIcon,
  17. double width = 100,
})

Implementation

ExpansionList({
  Key? key,
  this.items,
  this.title,
  @required this.onItemSelected,
  this.smallVersion = false,
  this.childrenAlignment,
  this.titleAlignment,
  this.icon,
  this.childrenTrailingIcon,
  this.childrenLeadingIcon,
  this.height = 40,
  this.dividerColor,
  this.textStyle,
  this.backgroundColor,
  this.collapseBackgroundColor,
  this.spacingBtwTextAndIcon, this.width = 100,
}) : super(key: key);