AtomicListItem constructor
const
AtomicListItem({
- Key? key,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? trailing,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- bool selected = false,
- bool enabled = true,
- bool dense = false,
- VisualDensity? visualDensity,
- EdgeInsetsGeometry? contentPadding,
- Color? tileColor,
- Color? selectedTileColor,
- bool enableFeedback = true,
- double? horizontalTitleGap,
- double? minVerticalPadding,
- double? minLeadingWidth,
- ListTileTitleAlignment? titleAlignment,
- Color? splashColor,
- Color? focusColor,
- Color? hoverColor,
- bool autofocus = false,
- ShapeBorder? shape,
- AtomicListItemVariant variant = AtomicListItemVariant.standard,
- AtomicListItemSize size = AtomicListItemSize.medium,
- EdgeInsetsGeometry? margin,
- BorderRadius? borderRadius,
- bool showDivider = false,
- AtomicBadge? badge,
Implementation
const AtomicListItem({
super.key,
this.leading,
this.title,
this.subtitle,
this.trailing,
this.onTap,
this.onLongPress,
this.selected = false,
this.enabled = true,
this.dense = false,
this.visualDensity,
this.contentPadding,
this.tileColor,
this.selectedTileColor,
this.enableFeedback = true,
this.horizontalTitleGap,
this.minVerticalPadding,
this.minLeadingWidth,
this.titleAlignment,
this.splashColor,
this.focusColor,
this.hoverColor,
this.autofocus = false,
this.shape,
this.variant = AtomicListItemVariant.standard,
this.size = AtomicListItemSize.medium,
this.margin,
this.borderRadius,
this.showDivider = false,
this.badge,
});