showPopup method
void
showPopup({
- String? title,
- required String message,
- List<
PopupButton> ? buttons, - required dynamic callback(
- String id
override
Bot API 6.2+ A method that shows a native popup
described by the params argument of the type
PopupParams
. The Mini App will receive the event
popupClosed when the popup is closed. If an optional
callback parameter was passed, the callback function will
be called and the field id of the pressed button will be
passed as the first argument.
Implementation
@override
void showPopup({
String? title,
required String message,
List<PopupButton>? buttons,
required Function(String id) callback,
}) {}