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,
splashColor: splashColor,
hoverColor: hoverColor,
highlightColor: highlightColor,
child: this,
);
}