onFeedBackTap method

Widget onFeedBackTap(
  1. VoidCallback onTap, {
  2. HitTestBehavior hitTestBehavior = HitTestBehavior.deferToChild,
  3. 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,
  );
}