CustomCard constructor

const CustomCard({
  1. Key? key,
  2. required Widget child,
  3. String? title,
  4. String? subtitle,
  5. Widget? leading,
  6. Widget? trailing,
  7. VoidCallback? onTap,
  8. CardVariant variant = CardVariant.elevated,
  9. 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,
});