BaseCard constructor

const BaseCard({
  1. required Widget child,
  2. EdgeInsets innerPadding = const EdgeInsets.all(CardContentStyles.padding),
  3. EdgeInsets margin = const EdgeInsets.only(bottom: Sizes.baseTriple),
  4. VoidCallback? onTap,
  5. double elevation = 0,
  6. Color color = ColorPalette.baseWhite,
  7. Color borderColor = ColorPalette.baseGrey30,
  8. 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;