ClipboardTextReceivedEvent constructor

ClipboardTextReceivedEvent(
  1. void eventHandler(
    1. ClipboardTextReceivedPayload payload
    )
)

Implementation

ClipboardTextReceivedEvent(void Function(ClipboardTextReceivedPayload payload) eventHandler)
    : super(
        TelegramEventType.clipboardTextReceived,
        (ClipboardTextReceivedPayloadJSObject payload) {
          eventHandler(ClipboardTextReceivedPayload(payload.data?.toDart));
        }.toJS,
      );