CardProps constructor

const CardProps({
  1. Widget? child,
  2. List<Widget>? children,
  3. CardVariant variant = CardVariant.elevated,
  4. String? padding,
  5. String? borderRadius,
  6. String? backgroundColor,
  7. bool fillWidth = false,
  8. void onTap()?,
})

Implementation

const CardProps({
  this.child,
  this.children,
  this.variant = CardVariant.elevated,
  this.padding,
  this.borderRadius,
  this.backgroundColor,
  this.fillWidth = false,
  this.onTap,
}) : assert(child != null || children != null,
          'Either child or children must be provided');