CustomCard constructor
const
CustomCard({
- Key? key,
- required Widget child,
- String? title,
- String? subtitle,
- Widget? leading,
- Widget? trailing,
- VoidCallback? onTap,
- CardVariant variant = CardVariant.elevated,
- EdgeInsetsGeometry? padding,
Implementation
const CustomCard({
super.key,
required this.child,
this.title,
this.subtitle,
this.leading,
this.trailing,
this.onTap,
this.variant = CardVariant.elevated,
this.padding,
});