stopTyping method

Future<void> stopTyping([
  1. String? parentId
])

Sets last typing to null and sends the typing.stop event.

Implementation

Future<void> stopTyping([String? parentId]) async {
  if (config?.typingEvents == false) {
    return;
  }

  client.logger.info('stop typing');
  _lastTypingEvent = null;
  await sendEvent(Event(
    type: EventType.typingStop,
    parentId: parentId,
  ));
}