CustomCard constructor

const CustomCard({
  1. Key? key,
  2. required Widget child,
  3. Color color = Colors.white,
  4. double? elevation = 2.0,
})

Creates a CustomCard with customizable child, color, and elevation.

Implementation

const CustomCard({
  Key? key,
  required this.child,
  this.color = Colors.white,
  this.elevation = 2.0,
}) : super(key: key);