card method

Widget card({
  1. Color? color,
  2. double? elevation,
  3. ShapeBorder? shape,
  4. EdgeInsetsGeometry? margin,
})

Wraps widget with Card

Implementation

Widget card({
  Color? color,
  double? elevation,
  ShapeBorder? shape,
  EdgeInsetsGeometry? margin,
}) {
  return Card(
    color: color,
    elevation: elevation,
    shape: shape,
    margin: margin,
    child: this,
  );
}