Card constructor

const Card({
  1. Key? key,
  2. bool? isSelected,
  3. void onPressed()?,
  4. double? radius,
  5. EdgeInsets? padding,
  6. bool enterAnimated = false,
  7. OutlinedBorder? shape,
  8. bool isError = false,
  9. bool enterActionsOnRight = false,
  10. WidgetStatesController? statesController,
  11. bool inert = false,
  12. bool fillsSelection = false,
  13. required Widget child,
})

Implementation

const Card({
  super.key,
  bool? isSelected,
  this.onPressed,
  this.radius,
  this.padding,
  this.enterAnimated = false,
  this.shape,
  this.isError = false,
  this.enterActionsOnRight = false,
  this.statesController,
  this.inert = false,
  this.fillsSelection = false,
  required this.child,
}) : isSelected = isSelected ?? false;