Future setTyping(String userId, bool typing) { return reference.set( { 'typing': {userId: typing} }, SetOptions(merge: true), ); }