sendFileMessage method

Future<void> sendFileMessage(
  1. String path, {
  2. String? name,
  3. int? fileSize,
})

Implementation

Future<void> sendFileMessage(
  String path, {
  String? name,
  int? fileSize,
}) async {
  final msg = Message.createFileSendMessage(
    targetId: profile.id,
    chatType: chatType,
    filePath: path,
    fileSize: fileSize,
    displayName: name,
  );
  sendMessage(msg);
}