setTyping method

Future setTyping(
  1. String userId,
  2. bool typing
)

Implementation

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