addOnTap method
Implementation
Widget addOnTap({required Function()? onTap, Function()? onLongPress}) {
return GestureDetector(
child: Container(child: this),
onTap: onTap,
onLongPress: onLongPress,
);
}
Widget addOnTap({required Function()? onTap, Function()? onLongPress}) {
return GestureDetector(
child: Container(child: this),
onTap: onTap,
onLongPress: onLongPress,
);
}