ListItem constructor
ListItem({
- Key? key,
- bool disabled = false,
- required String title,
- Function? onPress,
- dynamic icon,
- ListItemType? type,
- String? subtitle,
- EdgeInsets? padding,
- Widget? trailing,
- Widget? leading,
- dynamic value,
- dynamic onChange(
- dynamic
- bool loading = false,
- TextStyle? titleStyle,
- Color? iconColor,
- double iconSize = 20.0,
- 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});