sendMessageWithMedia method
Future<String?>
sendMessageWithMedia({
- required String message,
- required String conversationId,
- dynamic attribute,
- required String mediaFilePath,
- required String mimeType,
- 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";
}