onTap method
Widget
onTap(
- Function? function, {
- BorderRadius? borderRadius,
- Color? splashColor,
- Color? hoverColor,
- Color? highlightColor,
add tap to parent widget
Implementation
Widget onTap(
Function? function, {
BorderRadius? borderRadius,
Color? splashColor,
Color? hoverColor,
Color? highlightColor,
}) {
return InkWell(
onTap: function as void Function()?,
borderRadius: borderRadius ??
(defaultInkWellRadius != null ? radius(defaultInkWellRadius) : null),
child: this,
splashColor: splashColor ?? defaultInkWellSplashColor,
hoverColor: hoverColor ?? defaultInkWellHoverColor,
highlightColor: highlightColor ?? defaultInkWellHighlightColor,
);
}