endTyping static method

dynamic endTyping({
  1. String? receaverUid,
  2. String? receiverType,
})

method to inform the receiver that the logged in user has ended typing.

receive this information in the onTypingStarted() method of the MessageListener class

method could throw PlatformException with error codes specifying the cause

Implementation

static endTyping({String? receaverUid, String? receiverType}) async {
  try {
    await channel.invokeMethod(
        'endTyping', {'uid': receaverUid, 'receiverType': receiverType});
  } catch (e) {
    throw e;
  }
}