SmoothCard constructor

SmoothCard({
  1. Key? key,
  2. double smoothness = 1,
  3. BorderRadiusGeometry borderRadius = BorderRadius.zero,
  4. BorderSide side = BorderSide.none,
  5. Widget? child,
  6. Color? color,
  7. Color? shadowColor,
  8. double? elevation,
  9. bool borderOnForeground = true,
  10. EdgeInsetsGeometry? margin,
  11. bool semanticContainer = true,
})

Implementation

SmoothCard({
  Key? key,
  this.smoothness = 1,
  this.borderRadius = BorderRadius.zero,
  this.side = BorderSide.none,
  Widget? child,
  Color? color,
  Color? shadowColor,
  double? elevation,
  bool borderOnForeground = true,
  EdgeInsetsGeometry? margin,
  bool semanticContainer = true,
}) : super(
        key: key,
        color: color,
        shadowColor: shadowColor,
        elevation: elevation,
        borderOnForeground: borderOnForeground,
        margin: margin,
        semanticContainer: semanticContainer,
        clipBehavior: Clip.antiAlias,
        shape: SmoothRectangleBorder(
          side: side,
          borderRadius: borderRadius,
          smoothness: smoothness,
        ),
        child: child,
      );