updateTypingStatus method Null safety
Implementation
void updateTypingStatus(Member? member, {bool typing = false}) {
if (member == null) return;
final typingStatus = TypingStatus(
channelType: channelType,
channelUrl: channelUrl,
user: member,
timestamp: DateTime.now().millisecondsSinceEpoch,
);
if (typing) {
typingStatus.saveToCache();
} else {
typingStatus.removeFromCache();
}
}