Card constructor

const Card({
  1. Key? key,
  2. Widget? child,
  3. Color? color,
  4. EdgeInsets? padding,
})

Creates a Card with an optional child, color, and padding.

Implementation

const Card({super.key, Widget? child, this.color, this.padding})
    : super(child: child ?? const SizedBox());