showConfirm abstract method

void showConfirm(
  1. String message, [
  2. void callback(
    1. bool isOkPressed
    )?
])

Bot API 6.2+ A method that shows message in a simple confirmation window with 'OK' and 'Cancel' buttons. If an optional callback parameter was passed, the callback function will be called when the popup is closed and the first argument will be a boolean indicating whether the user pressed the 'OK' button.

Implementation

void showConfirm(String message, [void Function(bool isOkPressed)? callback]);