sendCustomMessage method Null safety

  1. @Deprecated('sendCustomMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createCustomMessage to create a message first, and then call sendMessage to send the message')
Future<V2TimValueCallback<V2TimMessage>> sendCustomMessage(
  1. {required String data,
  2. required String receiver,
  3. required String groupID,
  4. MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
  5. String desc = "",
  6. String extension = "",
  7. bool onlineUserOnly = false,
  8. bool isExcludedFromUnreadCount = false,
  9. OfflinePushInfo? offlinePushInfo}
)
@Deprecated('sendCustomMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createCustomMessage to create a message first, and then call sendMessage to send the message')

Send a custom message

Implementation

@Deprecated(
 'sendCustomMessage has been deprecated since 3.6.0, we separate the creation of the message from the sending of the message, please use createCustomMessage to create the message, and then call sendMessage to send the message')
Future<V2TimValueCallback<V2TimMessage> ;> sendCustomMessage({
 required String data,
 required String receiver,
 required String groupID,
 MessagePriorityEnum priority = MessagePriorityEnum.V2TIM_PRIORITY_NORMAL,
 String desc = "",
 String extension = " ",
 bool onlineUserOnly = false,
 bool isExcludedFromUnreadCount = false,
 OfflinePushInfo? offlinePushInfo,
}) async {
 return ImFlutterPlatform.instance.sendCustomMessage(
 data: data,
 receiver: receiver, 
 groupID: groupID,
 priority: EnumUtils.convertMessagePriorityEnum(priority),
 desc: desc,
 extension: extension,
 onlineUserOnly: onlineUserOnly,
 isExcludedFromUnreadCount: isExcludedFromUnreadCount,
 offlinePushInfo: offlinePushInfo?.toJson( ));
}