sendTextMessage method

  1. @override
Future<V2TimValueCallback<V2TimMessage>> sendTextMessage({
  1. required String text,
  2. required String receiver,
  3. required String groupID,
  4. String? id,
  5. int priority = 0,
  6. bool onlineUserOnly = false,
  7. bool isExcludedFromUnreadCount = false,
  8. Map<String, dynamic>? offlinePushInfo,
})
override

发送高级文本消息

Implementation

@override

///发送高级文本消息
Future<V2TimValueCallback<V2TimMessage>> sendTextMessage({
  required String text,
  required String receiver,
  required String groupID,
  String? id,
  int priority = 0,
  bool onlineUserOnly = false,
  bool isExcludedFromUnreadCount = false,
  Map<String, dynamic>? offlinePushInfo,
}) async {
  return await _v2timMessageManager.sendTextMessage<V2TimValueCallback<V2TimMessage>, V2TimMessage>(
      {"text": text, "receiver": receiver, "groupID": groupID, "priority": priority, "onlineUserOnly": onlineUserOnly, "isExcludedFromUnreadCount": isExcludedFromUnreadCount, "offlinePushInfo": offlinePushInfo});
}