card method

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

Returns a new Card widget with the given child.

Implementation

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