Card.ghost constructor

const Card.ghost({
  1. Widget? child,
  2. List<Widget>? children,
  3. String? padding,
  4. String? borderRadius,
  5. void onTap()?,
  6. void onClick()?,
  7. String? backgroundColor,
  8. bool fillWidth = false,
  9. Key? key,
})

Implementation

const Card.ghost({
  Widget? child,
  List<Widget>? children,
  this.padding,
  this.borderRadius,
  void Function()? onTap,
  void Function()? onClick,
  this.backgroundColor,
  this.fillWidth = false,
  super.key,
})  : _child = child,
      _children = children,
      _onTap = onTap ?? onClick,
      variant = CardVariant.ghost,
      assert(child != null || children != null,
          'Either child or children must be provided');