CardSurface constructor

const CardSurface({
  1. Key? key,
  2. required OutlinedBorder shape,
  3. required Color fill,
  4. required Color previousFill,
  5. required BorderSide side,
  6. required BorderSide previousSide,
  7. required Animation<double> transition,
  8. required Animation<double> pressed,
  9. Color hover = const Color(0x00000000),
  10. PressSparkles? sparkles,
  11. Color inkColor = const Color(0x00000000),
  12. required PressLook look,
  13. required Brightness brightness,
  14. required EdgeInsets padding,
  15. required BoxConstraints minimum,
  16. required Size tapTarget,
  17. required bool interactive,
  18. required bool selected,
  19. bool childFills = false,
  20. bool clipsChild = false,
  21. VoidCallback? onTap,
  22. ValueChanged<PointerDownEvent>? onPointerDown,
  23. ValueChanged<PointerEvent>? onPointerEnd,
  24. ValueChanged<bool>? onHover,
  25. Widget? child,
})

Implementation

const CardSurface({
  super.key,
  required this.shape,
  required this.fill,
  required this.previousFill,
  required this.side,
  required this.previousSide,
  required this.transition,
  required this.pressed,
  this.hover = const Color(0x00000000),
  this.sparkles,
  this.inkColor = const Color(0x00000000),
  required this.look,
  required this.brightness,
  required this.padding,
  required this.minimum,
  required this.tapTarget,
  required this.interactive,
  required this.selected,
  this.childFills = false,
  this.clipsChild = false,
  this.onTap,
  this.onPointerDown,
  this.onPointerEnd,
  this.onHover,
  super.child,
});