sendMessageWithMedia method

  1. @override
Future<String?> sendMessageWithMedia({
  1. required String message,
  2. required String conversationId,
  3. dynamic attribute,
  4. required String mediaFilePath,
  5. required String mimeType,
  6. required String fileName,
})
override

Send message with media #

Implementation

@override
Future<String?> sendMessageWithMedia({ required String message,
  required String conversationId,
  dynamic attribute,
  required String mediaFilePath,
  required String mimeType,
  required String fileName}) async {
  final String? result = await methodChannel.invokeMethod<String>(
      'sendMessageWithMedia',
      {
        "message": message,
        "conversationId": conversationId,
        "attribute": attribute,
        "mediaFilePath": mediaFilePath,
        "mimeType": mimeType,
        "fileName": fileName,
      });
  return result ?? "Something Wrong in SendMediaMessage";
}