updateTyping method
Keeps ChatService.keepTyping subscription, if message field is not empty, or cancels it otherwise.
Implementation
void updateTyping() {
final bool sendIsEmpty = send.field.text.isEmpty;
final bool? editIsEmpty = edit.value?.field.text.isEmpty;
if (editIsEmpty ?? sendIsEmpty) {
_stopTyping();
} else {
_keepTyping();
}
}