sendTextMessage method Null safety
- @Deprecated('sendTextMessage has been deprecated since 3.6.0, we separate the creation of messages from the sending of messages, please use createTextMessage to create messages first, and then call sendMessage to send messages')
- {required String text,
- required String receiver,
- required String groupID,
- MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
- bool onlineUserOnly = false,
- bool isExcludedFromUnreadCount = false,
- OfflinePushInfo? offlinePushInfo}
@Deprecated('sendTextMessage has been deprecated since 3.6.0, we separate the creation of messages from the sending of messages, please use createTextMessage to create messages first, and then call sendMessage to send messages')
Send advanced text messages
Implementation
@Deprecated(
'sendTextMessage has been deprecated since 3.6.0, we separate creating and sending messages, please use createTextMessage to create a message, and then call sendMessage to send a message')
/ ;//Send Advanced Text Message
///
Future<V2TimValueCallback<V2TimMessage>> sendTextMessage({
required String text,
required String receiver,
required String groupID,
MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
bool onlineUserOnly = false,
bool isExcludedFromUnreadCount = false,
OfflinePushInfo? offlinePushInfo,
}) async {
return ImFlutterPlatform.instance.sendTextMessage(
text: text,
receiver: receiver,
groupID: groupID,
priority: EnumUtils.convertMessagePriorityEnum(priority),
onlineUserOnly: onlineUserOnly,
isExcludedFromUnreadCount: isExcludedFromUnreadCount,
offlinePushInfo: offlinePushInfo?.toJson( ),
);
}