OudsCardItem constructor
- Key? key,
- required String label,
- OudsListItemContentAlignment contentAlignment = OudsCardItemDefaults.contentAlignment,
- OudsListItemDecoration decoration = OudsCardItemDefaults.decoration,
- String? overline,
- String? extraLabel,
- String? description,
- Widget belowTextContent(
- BuildContext context,
- OudsListItemControlState state
- OudsListItemLeading? leading,
- OudsListItemTrailing? trailing,
- Widget bottomContent(
- BuildContext context,
- OudsListItemControlState state
- String? helperText,
- bool boldLabel = false,
- bool enable = true,
- VoidCallback? onTap,
- OudsListItemIndicator indicator = OudsCardItemDefaults.indicator,
- OudsSkeleton? skeleton,
Creates an OUDS card item.
Implementation
const OudsCardItem({
super.key,
required String label,
this.contentAlignment = OudsCardItemDefaults.contentAlignment,
this.decoration = OudsCardItemDefaults.decoration,
this.overline,
this.extraLabel,
this.description,
this.belowTextContent,
this.leading,
this.trailing,
this.bottomContent,
this.helperText,
this.boldLabel = false,
this.enable = true,
this.onTap,
this.indicator = OudsCardItemDefaults.indicator,
this.skeleton,
// Field is nullable for the .labelContent constructor; the parameter stays
// non-nullable so that `label: null` is a compile-time error.
// ignore: prefer_initializing_formals
}) : label = label,
labelContent = null;