sendFileMessage method
Implementation
Future<void> sendFileMessage(
String path, {
String? name,
int? fileSize,
}) async {
if (await createThreadIfNotExits() == false) return;
final msg = Message.createFileSendMessage(
targetId: thread!.threadId,
filePath: path,
fileSize: fileSize,
displayName: name,
);
sendMessage(msg);
}