onTap method

Button onTap(
  1. VoidCallback perform
)

A modifier that sets its Button's onPress handler.

Example:

Button(() => Text("Tap me"))
    .onTap(() => print("Tapped!"));

Implementation

Button onTap(VoidCallback perform) {
  return this._rebase(onPressed: perform);
}