PopupClosedEvent constructor

PopupClosedEvent(
  1. void eventHandler(
    1. PopupClosedPayload payload
    )
)

Implementation

PopupClosedEvent(void Function(PopupClosedPayload payload) eventHandler)
    : super(
        TelegramEventType.popupClosed,
        (PopupClosedPayloadJSObject payload) {
          eventHandler(PopupClosedPayload(payload.button_id?.toDart));
        }.toJS,
      );