card method

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

Wraps this widget in a Card.

Implementation

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