I'm trying to mimic the behavior of tapping with ripple on a MaterialButton in Flutter. In essence I would like to be able to call some arbitrary function (e.g. tapTargetWithEffect(GlobalKey target)) and see ripple effect on the button with given GlobalKey as well the onPressed callback to be executed.
I see in the pointer tests that it's possible to dispatch pointer events through WidgetsBinding to trigger ripple effect. How to execute the onPressed callbacks?
