BaseCard constructor
const
BaseCard({
- required Widget child,
- EdgeInsets innerPadding = const EdgeInsets.all(CardContentStyles.padding),
- EdgeInsets margin = const EdgeInsets.only(bottom: Sizes.baseTriple),
- VoidCallback? onTap,
- double elevation = 0,
- Color color = ColorPalette.baseWhite,
- Color borderColor = ColorPalette.baseGrey30,
- Key? key,
Implementation
const BaseCard({
required final Widget child,
final EdgeInsets innerPadding =
const EdgeInsets.all(CardContentStyles.padding),
final EdgeInsets margin = const EdgeInsets.only(bottom: Sizes.baseTriple),
final VoidCallback? onTap,
final double elevation = 0,
final Color color = ColorPalette.baseWhite,
final Color borderColor = ColorPalette.baseGrey30,
final Key? key,
}) : _child = child,
_padding = innerPadding,
_margin = margin,
_onTap = onTap,
_elevation = elevation,
_color = color,
_borderColor = borderColor,
_key = key;