offClick method

void offClick(
  1. void callback()
)

A method that removes the button press event handler.

Implementation

void offClick(void Function() callback) => Telegram.WebApp.SettingsButton.offClick(callback.toJS);