ListItem constructor

ListItem({
  1. Key? key,
  2. bool disabled = false,
  3. required String title,
  4. Function? onPress,
  5. dynamic icon,
  6. ListItemType? type,
  7. String? subtitle,
  8. EdgeInsets? padding,
  9. Widget? trailing,
  10. Widget? leading,
  11. dynamic value,
  12. dynamic onChange(
    1. dynamic
    )?,
  13. bool loading = false,
  14. TextStyle? titleStyle,
  15. Color? iconColor,
  16. double iconSize = 20.0,
  17. int subtitleMaxLines = 1,
})

Implementation

ListItem(
    {super.key,
    this.disabled = false,
    required this.title,
    this.onPress,
    this.icon,
    this.type,
    this.subtitle,
    this.padding,
    this.trailing,
    this.leading,
    this.value,
    this.onChange,
    this.loading = false,
    this.titleStyle,
    this.iconColor,
    this.iconSize = 20.0,
    this.subtitleMaxLines = 1});