toCard method

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

To make any widget into Card with all other member of Card

Implementation

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