sendFileMessage method Null safety

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

Send file web side fileName and fileContent are required fields

Implementation

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