endTyping static method

dynamic endTyping({
  1. @Deprecated('This parameter has been deprecated and will be removed in the future. Please use the [receiverUid] parameter instead') String? receaverUid,
  2. String? receiverUid,
  3. 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(
    {@Deprecated(
        'This parameter has been deprecated and will be removed in the future. Please use the [receiverUid] parameter instead')
    String? receaverUid,
    String? receiverUid,
    String? receiverType}) async {
  try {
    await channel.invokeMethod('endTyping',
        {'uid': receiverUid ?? receaverUid, 'receiverType': receiverType});
  } catch (e) {
    throw e;
  }
}