CustomCard constructor

const CustomCard({
  1. required Widget child,
  2. required dynamic on_pressed()?,
  3. double elevation = 3,
  4. double border_radius = 18,
  5. LinearGradient linear_gradient = const LinearGradient(colors: [Colors.white, Colors.white]),
  6. Color splash_color = Colors.transparent,
  7. Duration animation_duration = const Duration(milliseconds: 100),
  8. BoxShape shape = BoxShape.rectangle,
  9. String? tooltip,
})

Implementation

const CustomCard({
  required this.child,
  required this.on_pressed,
  this.elevation = 3,
  this.border_radius = 18,
  this.linear_gradient = const LinearGradient(
    colors: [
      Colors.white,
      Colors.white,
    ],
  ),
  this.splash_color = Colors.transparent,
  this.animation_duration = const Duration(milliseconds: 100),
  this.shape = BoxShape.rectangle,
  this.tooltip,
});