TappableOverlay constructor
const
TappableOverlay({
- Key? key,
- required Widget child,
- required VoidCallback? onTap,
- Color? highlightColor,
- Color? pressedColor,
- double? width,
- double? height,
- EdgeInsets? margin,
- bool expandHeight = false,
- bool expandWidth = false,
- BorderRadius? borderRadius,
- HitTestBehavior? behaviour,
- bool disableIosTappable = false,
- 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);