sendChatAttachment method

Future<void> sendChatAttachment(
  1. ChatViewAttachmentData attachment
)

Sends attachment to the chat. Parameter attachment attachment to be send

Await the returned Future for the native response and to catch errors.

Implementation

Future<void> sendChatAttachment(ChatViewAttachmentData attachment) async {
  final Map<String, dynamic> args = attachment.toJson();
  await _channel.invokeMethod('sendChatMessage', args);
}