sendTextMessage method Null safety

  1. @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')
Future<V2TimValueCallback<V2TimMessage>> sendTextMessage(
  1. {required String text,
  2. required String receiver,
  3. required String groupID,
  4. MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
  5. bool onlineUserOnly = false,
  6. bool isExcludedFromUnreadCount = false,
  7. 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( ),
 );
}