typingIndicator method

Future<void> typingIndicator(
  1. List<String> list,
  2. String type
)

Implementation

Future<void> typingIndicator(List<String> list, String type) async {
  Map<String, dynamic> jsonData = {
    'type': "message",
    'typing': isTyping.value,
  };

  if (type == 'group') {
    EnxRtc.sendUserData(jsonData, true, []);
  } else {
    EnxRtc.sendUserData(jsonData, false, list);
  }

  if (kDebugMode) {
    print('typing$jsonData');
  }
}