CupertinoCard constructor

CupertinoCard({
  1. Widget? child,
  2. double elevation = 2.0,
  3. EdgeInsets margin = const EdgeInsets.all(4.0),
  4. EdgeInsets padding = const EdgeInsets.all(0.0),
  5. Color color = Colors.white,
  6. Color? splashColor,
  7. Decoration? decoration,
  8. BorderRadius radius = const BorderRadius.all(const Radius.circular(40.0)),
  9. VoidCallback? onPressed,
})

Implementation

CupertinoCard({
  this.child,
  this.elevation = 2.0,
  this.margin: const EdgeInsets.all(4.0),
  this.padding: const EdgeInsets.all(0.0),
  this.color: Colors.white,
  this.splashColor,
  this.decoration,
  this.radius: const BorderRadius.all(
    const Radius.circular(
      40.0,
    ),
  ),
  this.onPressed,
});