sendTypingStatus static method
Sends the typing status to the specified recipient.
This static method is used to send the typing status to a recipient with the given toJid
and chatType
.
The toJid
parameter specifies the JID of the recipient chat.
The chatType
parameter specifies the type of chat, such as "chat" for one-to-one chat
or "groupchat" for group chat.
Returns a Future<void>
that completes when the typing status is sent successfully.
Throws an exception if the required parameters are not provided. Example:
await Mirrorfly.sendTypingStatus(toJid: 'example@domain.com', chatType: 'single');
Implementation
static sendTypingStatus({required String toJid, required String chatType}) {
return FlyChatFlutterPlatform.instance.sendTypingStatus(toJid, chatType);
}