card method

Widget card({
  1. Key? key,
  2. Color? color,
  3. Color? shadowColor,
  4. Color? surfaceTintColor,
  5. double? elevation,
  6. ShapeBorder? shape,
  7. bool borderOnForeground = true,
  8. EdgeInsetsGeometry? margin,
  9. Clip? clipBehavior,
  10. bool semanticContainer = true,
})

Wraps this widget in a Card.

Implementation

Widget card({
  Key? key,
  Color? color,
  Color? shadowColor,
  Color? surfaceTintColor,
  double? elevation,
  ShapeBorder? shape,
  bool borderOnForeground = true,
  EdgeInsetsGeometry? margin,
  Clip? clipBehavior,
  bool semanticContainer = true,
}) {
  return Card(
    key: key,
    color: color,
    shadowColor: shadowColor,
    surfaceTintColor: surfaceTintColor,
    elevation: elevation,
    shape: shape,
    borderOnForeground: borderOnForeground,
    margin: margin,
    clipBehavior: clipBehavior,
    semanticContainer: semanticContainer,
    child: this,
  );
}