cardTheme static method
Implementation
static CardThemeData cardTheme(Palette colors, [MonetShapes? shapes]) {
shapes ??= _defaultShapes;
return CardThemeData(
clipBehavior: Clip.none, // match default
color: colors.background,
shadowColor: _singleShadowColorFor(colors.background),
surfaceTintColor: colors.background,
elevation: modalElevation,
margin: const EdgeInsets.all(0), // match default
shape: shapes.border(side: BorderSide(color: colors.fill, width: 2)),
);
}