showAlert abstract method

void showAlert(
  1. String message, [
  2. dynamic callback()?
])

Bot API 6.2+ A method that shows message in a simple alert with a 'Close' button. If an optional callback parameter was passed, the callback function will be called when the popup is closed.

Implementation

void showAlert(String message, [Function()? callback]);