Card constructor
const
Card({
- Key? key,
- Widget? child,
- Color? color,
- 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());