onFeedBackTap method
Widget
onFeedBackTap(
- VoidCallback onTap, {
- HitTestBehavior hitTestBehavior = HitTestBehavior.deferToChild,
- bool touchFeedBack = false,
it is very much like onTap extension but when you put your finger on it, its color will change, and you can decide that whether it will have a touchFeedBack (vibration on your phone)
Implementation
Widget onFeedBackTap(VoidCallback onTap,
{HitTestBehavior hitTestBehavior = HitTestBehavior.deferToChild,
bool touchFeedBack = false}) {
return _CallbackButton(
child: this,
onTap: onTap,
needHaptic: touchFeedBack,
hitTestBehavior: hitTestBehavior,
);
}