onTypingStarted method
Implementation
@override
void onTypingStarted(TypingIndicator typingIndicator) {
if (userObject != null &&
typingIndicator.receiverType == ReceiverTypeConstants.user &&
typingIndicator.sender.uid == userObject!.uid) {
isTyping = true;
typingUser = typingIndicator.sender;
update();
} else if (groupObject != null &&
typingIndicator.receiverType == ReceiverTypeConstants.group &&
typingIndicator.receiverId == groupObject!.guid) {
isTyping = true;
typingUser = typingIndicator.sender;
update();
}
}