TappableOverlay constructor

const TappableOverlay({
  1. Key? key,
  2. required Widget child,
  3. required VoidCallback? onTap,
  4. Color? highlightColor,
  5. Color? pressedColor,
  6. double? width,
  7. double? height,
  8. EdgeInsets? margin,
  9. bool expandHeight = false,
  10. bool expandWidth = false,
  11. BorderRadius? borderRadius,
  12. HitTestBehavior? behaviour,
  13. bool disableIosTappable = false,
  14. ShapeBorder? shape,
})

Implementation

const TappableOverlay({
  Key? key,
  required this.child,
  required this.onTap,
  this.highlightColor,
  this.pressedColor,
  this.width,
  this.height,
  this.margin,
  this.expandHeight = false,
  this.expandWidth = false,
  this.borderRadius,
  this.behaviour,
  this.disableIosTappable = false,
  this.shape,
})  : assert(
          (expandWidth == true && expandHeight == false) ||
              (expandWidth == false && expandHeight == true) ||
              (expandWidth == false && expandHeight == false),
          'Setting both expand width and expand height is not allowed'),
      super(key: key);