InkCell constructor

const InkCell({
  1. Key? key,
  2. Color color = Colors.transparent,
  3. Color splashColor = const Color(0xFFE0E0E0),
  4. GestureTapCallback? onTap,
  5. double circular = 0,
  6. Widget? child,
  7. EdgeInsetsGeometry padding = EdgeInsets.zero,
  8. double? height,
  9. BorderRadius? radius,
  10. GestureLongPressCallback? onLongPress,
  11. GestureTapCallback? onDoubleTap,
  12. GestureTapDownCallback? onTapDown,
  13. GestureTapCancelCallback? onTapCancel,
  14. List<Color>? shapeColors,
  15. List<double>? shapeWidths,
  16. String? tooltip,
})

Implementation

const InkCell({
  Key? key,
  this.color = Colors.transparent,
  this.splashColor = const Color(0xFFE0E0E0),
  this.onTap,
  this.circular = 0,
  this.child,
  this.padding = EdgeInsets.zero,
  this.height,
  this.radius,
  this.onLongPress,
  this.onDoubleTap,
  this.onTapDown,
  this.onTapCancel,
  this.shapeColors,
  this.shapeWidths,
  this.tooltip,
})  : assert(shapeColors == null || shapeColors.length == 4),
      assert(shapeWidths == null || shapeWidths.length == 4),
      super(key: key);