sendMessage method

  1. @override
Future<String?> sendMessage({
  1. required String conversationId,
  2. required String message,
  3. dynamic attribute,
})
override

Send message #

Implementation

@override
Future<String?> sendMessage({required String conversationId,
  required String message,
  dynamic attribute}) async {
  final String? result = await methodChannel.invokeMethod<String>(
      'sendMessage',
      {
        "conversationId": conversationId,
        "message": message,
        "attribute": attribute
      });
  return result ?? "";
}